﻿namespace ACCOUNTING
{
    using ACCOUNTING.Encryption;
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Command;
    using HardwareMotherboardID.nsMotherBoardID;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.IO;
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;
    using System.Xml;

    [DesignerGenerated]
    public class FRMMAIN : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AboutToolStripMenuItem")]
        private ToolStripMenuItem _AboutToolStripMenuItem;
        [AccessedThroughProperty("CapNhatPMToolStripMenuItem")]
        private ToolStripMenuItem _CapNhatPMToolStripMenuItem;
        [AccessedThroughProperty("CapNhatToolStripMenuItem")]
        private ToolStripMenuItem _CapNhatToolStripMenuItem;
        [AccessedThroughProperty("CmdAllNghiepVu")]
        private Button _CmdAllNghiepVu;
        [AccessedThroughProperty("CmdBanHang")]
        private ToolStripButton _CmdBanHang;
        [AccessedThroughProperty("CmdDangNhap")]
        private ToolStripMenuItem _CmdDangNhap;
        [AccessedThroughProperty("CmdDockLeft")]
        private C1CommandDock _CmdDockLeft;
        [AccessedThroughProperty("CmdHopDong")]
        private ToolStripButton _CmdHopDong;
        [AccessedThroughProperty("CmdKeToanKho")]
        private ToolStripButton _CmdKeToanKho;
        [AccessedThroughProperty("CmdKTKho")]
        private ToolStripButton _CmdKTKho;
        [AccessedThroughProperty("CmdKTTongHop")]
        private ToolStripButton _CmdKTTongHop;
        [AccessedThroughProperty("CmdMuaHang")]
        private ToolStripButton _CmdMuaHang;
        [AccessedThroughProperty("CmdTaiSanCoDinh")]
        private ToolStripButton _CmdTaiSanCoDinh;
        [AccessedThroughProperty("CmdGiaThanh")]
        private ToolStripButton _CmdGiaThanh;
        [AccessedThroughProperty("ContentsToolStripMenuItem")]
        private ToolStripMenuItem _ContentsToolStripMenuItem;
        [AccessedThroughProperty("ContextMenuStrip1")]
        private ContextMenuStrip _ContextMenuStrip1;
        [AccessedThroughProperty("DangKyToolStripMenuItem")]
        private ToolStripMenuItem _DangKyToolStripMenuItem;
        [AccessedThroughProperty("ExitToolStripMenuItem")]
        private ToolStripMenuItem _ExitToolStripMenuItem;
        [AccessedThroughProperty("HelpMenu")]
        private ToolStripMenuItem _HelpMenu;
        [AccessedThroughProperty("HETHONGMENU")]
        private ToolStripMenuItem _HETHONGMENU;
        [AccessedThroughProperty("HienThiToolStripMenuItem")]
        private ToolStripMenuItem _HienThiToolStripMenuItem;
        [AccessedThroughProperty("HoTroToolStripMenuItem")]
        private ToolStripMenuItem _HoTroToolStripMenuItem;
        [AccessedThroughProperty("ImageList1")]
        private ImageList _ImageList1;
        [AccessedThroughProperty("ImageListMenu")]
        private ImageList _ImageListMenu;
        [AccessedThroughProperty("ImportExcelToolStripMenuItem")]
        private ToolStripMenuItem _ImportExcelToolStripMenuItem;
        [AccessedThroughProperty("IndexToolStripMenuItem")]
        private ToolStripMenuItem _IndexToolStripMenuItem;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("LblBar1")]
        private System.Windows.Forms.ToolStripStatusLabel _LblBar1;
        [AccessedThroughProperty("LblBar2")]
        private System.Windows.Forms.ToolStripStatusLabel _LblBar2;
        [AccessedThroughProperty("LblDangNhap")]
        private System.Windows.Forms.ToolStripStatusLabel _LblDangNhap;
        [AccessedThroughProperty("LblGio")]
        private System.Windows.Forms.ToolStripStatusLabel _LblGio;
        [AccessedThroughProperty("MenuStrip")]
        private System.Windows.Forms.MenuStrip _MenuStrip;
        [AccessedThroughProperty("mnCapNhatTuDien")]
        private ToolStripMenuItem _mnCapNhatTuDien;
        [AccessedThroughProperty("mnDoiMatKhau")]
        private ToolStripMenuItem _mnDoiMatKhau;
        [AccessedThroughProperty("mnGiaTriMacDinh")]
        private ToolStripMenuItem _mnGiaTriMacDinh;
        [AccessedThroughProperty("mnHienThiChucNang")]
        private ToolStripMenuItem _mnHienThiChucNang;
        [AccessedThroughProperty("MnKhoaSo")]
        private ToolStripMenuItem _MnKhoaSo;
        [AccessedThroughProperty("mnQuanLyNguoiDung")]
        private ToolStripMenuItem _mnQuanLyNguoiDung;
        [AccessedThroughProperty("mnXoaTrangDuLieu")]
        private ToolStripMenuItem _mnXoaTrangDuLieu;
        [AccessedThroughProperty("NGONNGU")]
        private ToolStripMenuItem _NGONNGU;
        [AccessedThroughProperty("NotifyIcon1")]
        private NotifyIcon _NotifyIcon1;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("pLeftBottom")]
        private Panel _pLeftBottom;
        [AccessedThroughProperty("SearchToolStripMenuItem")]
        private ToolStripMenuItem _SearchToolStripMenuItem;
        [AccessedThroughProperty("StatusStrip")]
        private System.Windows.Forms.StatusStrip _StatusStrip;
        [AccessedThroughProperty("SupportToolStripMenuItem")]
        private ToolStripMenuItem _SupportToolStripMenuItem;
        [AccessedThroughProperty("TabLeft")]
        private C1DockingTab _TabLeft;
        [AccessedThroughProperty("TabMenu")]
        private C1DockingTabPage _TabMenu;
        [AccessedThroughProperty("ThoatChươngTr\x00ecnhToolStripMenuItem")]
        private ToolStripMenuItem _ThoatChươngTrìnhToolStripMenuItem;
        [AccessedThroughProperty("THONGTIN")]
        private ToolStripMenuItem _THONGTIN;
        [AccessedThroughProperty("ThongTinToolStripMenuItem")]
        private ToolStripMenuItem _ThongTinToolStripMenuItem;
        [AccessedThroughProperty("TIENGANH")]
        private ToolStripMenuItem _TIENGANH;
        [AccessedThroughProperty("TIENGVIET")]
        private ToolStripMenuItem _TIENGVIET;
        [AccessedThroughProperty("Timer1")]
        private Timer _Timer1;
        [AccessedThroughProperty("Timer2")]
        private Timer _Timer2;
        [AccessedThroughProperty("ToolStrip")]
        private System.Windows.Forms.ToolStrip _ToolStrip;
        [AccessedThroughProperty("ToolStripButton1")]
        private ToolStripButton _ToolStripButton1;
        [AccessedThroughProperty("ToolStripMenuItem_DKBQ")]
        private ToolStripMenuItem _ToolStripMenuItem_DKBQ;
        [AccessedThroughProperty("ToolStripMenuItem2")]
        private ToolStripSeparator _ToolStripMenuItem2;
        [AccessedThroughProperty("ToolStripSeparator1")]
        private ToolStripSeparator _ToolStripSeparator1;
        [AccessedThroughProperty("ToolStripSeparator12")]
        private ToolStripSeparator _ToolStripSeparator12;
        [AccessedThroughProperty("ToolStripSeparator3")]
        private ToolStripSeparator _ToolStripSeparator3;
        [AccessedThroughProperty("ToolStripSeparator5")]
        private ToolStripSeparator _ToolStripSeparator5;
        [AccessedThroughProperty("ToolStripSeparator8")]
        private ToolStripSeparator _ToolStripSeparator8;
        [AccessedThroughProperty("ToolStripStatusLabel")]
        private System.Windows.Forms.ToolStripStatusLabel _ToolStripStatusLabel;
        [AccessedThroughProperty("ToolStripStatusLabel1")]
        private System.Windows.Forms.ToolStripStatusLabel _ToolStripStatusLabel1;
        [AccessedThroughProperty("ToolTip")]
        private System.Windows.Forms.ToolTip _ToolTip;
        [AccessedThroughProperty("TroGiupToolStripMenuItem")]
        private ToolStripMenuItem _TroGiupToolStripMenuItem;
        [AccessedThroughProperty("TTDangKyDuLieu")]
        private ToolStripMenuItem _TTDangKyDuLieu;
        [AccessedThroughProperty("TTKetNoiCSDL")]
        private ToolStripMenuItem _TTKetNoiCSDL;
        [AccessedThroughProperty("TVMenu")]
        private TreeView _TVMenu;
        [AccessedThroughProperty("txtKiemTraHoaDon")]
        private TextBox _txtKiemTraHoaDon;
        private IContainer components;
        public bool CreateKeys;
        public bool EncryptKeys;
        public bool FirstTime;
        private bool Flag=false;
        public bool FullVersion;
        public bool InTrial;
        private Data key;
        private int m_ChildFormNumber;
        private object mButtomClick;
        private int mIndex;
        private int nIJ;
        private clsMauHoaDon objMHD;
        private clsMenu objMN;
        private clsNguoiDung objU;
        private clsXuatKho objXK;
        public object RC;
        public string RegSubKeyName;
        public object RN;
        private string strPathMVC;
        private string strPathXML;
        public int TrialPeriod;
        public string UsedTrialDays;
        ComponentResourceManager manager;

        public FRMMAIN()
        {
            base.HelpRequested += new HelpEventHandler(this.FRMMAIN_HelpRequested);
            base.KeyDown += new KeyEventHandler(this.FRMMAIN_KeyDown);
            base.Load += new EventHandler(this.FRMMAIN_Load);
            base.Disposed += new EventHandler(this.FRMMAIN_Disposed);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.Flag = false;
            this.objMN = new clsMenu();
            this.objXK = new clsXuatKho();
            this.objMHD = new clsMauHoaDon();
            this.objU = new clsNguoiDung();
            this.nIJ = 0;
            this.RegSubKeyName = "DRAGON2";
            this.CreateKeys = true;
            this.EncryptKeys = true;
            this.key = new Data("RandomPassword");
            this.UsedTrialDays = "";
            this.TrialPeriod = 30;
            this.InTrial = true;
            this.RN = "";
            this.RC = "";
            this.FullVersion = false;
            this.strPathMVC = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\MVC15.dll";
            this.strPathXML = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\DRAGON2\LVY.xml";
            this.m_ChildFormNumber = 0;
            this.InitializeComponent();
        }

        private void CapNhatToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!File.Exists(@"Update\FIXPATH_DRAGON2.exe"))
            {
                LVYModule.ShowWarning("Hiện tại chương tr\x00ecnh cập nhật phần mềm chưa được c\x00e0i đặt !");
            }
            else
            {
                try
                {
                    if (MessageBox.Show("Phần mềm kế to\x00e1n sẽ được đ\x00f3ng lại để tiến h\x00e0nh thao t\x00e1c cập nhật! Đồng \x00fd ?", "DRAGON 2 - Thong Bao", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
                    {
                        Process.Start(@"Update\FIXPATH_DRAGON2.exe");
                        Application.Exit();
                    }
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    ProjectData.ClearProjectError();
                }
            }
        }

        private void CloseAllToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form form in this.MdiChildren)
            {
                form.Close();
            }
        }

        private void CmdAllNghiepVu_Click(object sender, EventArgs e)
        {
            this.ButtomLeftClick = this.CmdAllNghiepVu;
            foreach (Form form in this.MdiChildren)
            {
                form.Close();
            }
            MyProject.Forms.Frm_main.MdiParent = this;
            MyProject.Forms.Frm_main.WindowState = FormWindowState.Maximized;
            MyProject.Forms.Frm_main.Show();
            this.LoadMenu("DC");
            this.TVMenu.Nodes[0].Nodes[0].Expand();
            int num3 = this.TVMenu.Nodes[0].Nodes[0].Nodes.Count - 1;
            for (int i = 0; i <= num3; i++)
            {
                this.TVMenu.Nodes[0].Nodes[0].Nodes[i].Collapse();
            }
        }

        private void CmdBanHang_Click(object sender, EventArgs e)
        {
            foreach (Form form in this.MdiChildren)
            {
                form.Close();
            }
            MyProject.Forms.Frm_BanHang.MdiParent = this;
            MyProject.Forms.Frm_BanHang.WindowState = FormWindowState.Maximized;
            MyProject.Forms.Frm_BanHang.Show();
            this.LoadMenu("BH");
        }

        private void CmdDangNhap_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_Login.ShowDialog();
            if (LVYModule.ReturnIfNull(modGeneral.H_USERID, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                this.EnabledMenu(true);
                LVYModule.InitProgram();
                this.AboutToolStripMenuItem.Text = "Th\x00f4ng tin phần mềm ( " + modGeneral.H_PHIENBANQUYETDINH + " ) ";
                this.TabLeft.Visible = true;
                this.objU.Load(modGeneral.H_USERNAME);
                if (modGeneral.H_USERNAME.ToUpper().Trim() == "ADMIN")
                {
                    this.LblDangNhap.Text = modGeneral.Tranlated("Người d\x00f9ng", "") + ": " + modGeneral.H_USERNAME + " [" + modGeneral.Tranlated("Quản trị hệ thống", "") + "]";
                }
                else
                {
                    this.LblDangNhap.Text = modGeneral.Tranlated("Người d\x00f9ng", "") + ": " + modGeneral.H_USERNAME + " [" + this.objU.TenViet.Trim() + "]";
                }
                this.LblDangNhap.Visible = true;
                foreach (Form form in this.MdiChildren)
                {
                    form.Close();
                }
                MyProject.Forms.Frm_main.MdiParent = this;
                MyProject.Forms.Frm_main.WindowState = FormWindowState.Maximized;
                MyProject.Forms.Frm_main.Show();
                this.LoadMenu("");
                if (this.TVMenu.Nodes.Find("MH", true).Length <= 0)
                {
                    this.CmdMuaHang.Visible = false;
                }
                else
                {
                    this.CmdMuaHang.Visible = true;
                }
                if (this.TVMenu.Nodes.Find("BH", true).Length <= 0)
                {
                    this.CmdBanHang.Visible = false;
                }
                else
                {
                    this.CmdBanHang.Visible = true;
                }
                if (this.TVMenu.Nodes.Find("VT", true).Length <= 0)
                {
                    this.CmdKTKho.Visible = false;
                }
                else
                {
                    this.CmdKTKho.Visible = true;
                }
                if (this.TVMenu.Nodes.Find("TH", true).Length <= 0)
                {
                    this.CmdKTTongHop.Visible = false;
                }
                else
                {
                    this.CmdKTTongHop.Visible = true;
                }
                if (this.TVMenu.Nodes.Find("KH", true).Length <= 0)
                {
                    this.CmdKeToanKho.Visible = false;
                }
                else
                {
                    this.CmdKeToanKho.Visible = true;
                }
                if (this.TVMenu.Nodes.Find("TS", true).Length <= 0)
                {
                    this.CmdTaiSanCoDinh.Visible = false;
                }
                else
                {
                    this.CmdTaiSanCoDinh.Visible = true;
                }
                if (this.TVMenu.Nodes.Find("GT", true).Length <= 0)
                {
                    this.CmdGiaThanh.Visible = false;
                }
                else
                {
                    this.CmdGiaThanh.Visible = true;
                }
                this.LoadMenu("DC");
                this.TVMenu.Nodes[0].Nodes[0].Expand();
                int num3 = this.TVMenu.Nodes[0].Nodes[0].Nodes.Count - 1;
                for (int i = 0; i <= num3; i++)
                {
                    this.TVMenu.Nodes[0].Nodes[0].Nodes[i].Collapse();
                }
                if (modGeneral.H_CANHBAOHANGTONKHO)
                {
                    LVYModule.CheckHangTonToiThieu();
                }
            }
        }

        private void CmdHopDong_Click(object sender, EventArgs e)
        {
            this.LoadMenu("HD");
        }

        private void CmdKeToanKho_Click(object sender, EventArgs e)
        {
            foreach (Form form in this.MdiChildren)
            {
                form.Close();
            }
            MyProject.Forms.Frm_KhoHang.MdiParent = this;
            MyProject.Forms.Frm_KhoHang.WindowState = FormWindowState.Maximized;
            MyProject.Forms.Frm_KhoHang.Show();
            this.LoadMenu("KH");
        }

        private void CmdKTKho_Click(object sender, EventArgs e)
        {
            foreach (Form form in this.MdiChildren)
            {
                form.Close();
            }
            MyProject.Forms.Frm_VonBangTien.MdiParent = this;
            MyProject.Forms.Frm_VonBangTien.WindowState = FormWindowState.Maximized;
            MyProject.Forms.Frm_VonBangTien.Show();
            this.LoadMenu("VT");
        }

        private void CmdKTTongHop_Click(object sender, EventArgs e)
        {
            foreach (Form form in this.MdiChildren)
            {
                form.Close();
            }
            MyProject.Forms.Frm_KeToan.MdiParent = this;
            MyProject.Forms.Frm_KeToan.WindowState = FormWindowState.Maximized;
            MyProject.Forms.Frm_KeToan.Show();
            this.LoadMenu("TH");
        }

        private void CmdMuaHang_Click(object sender, EventArgs e)
        {
            foreach (Form form in this.MdiChildren)
            {
                form.Close();
            }
            MyProject.Forms.Frm_MuaHang.MdiParent = this;
            MyProject.Forms.Frm_MuaHang.WindowState = FormWindowState.Maximized;
            MyProject.Forms.Frm_MuaHang.Show();
            this.LoadMenu("MH");
        }

        private void CmdNghiepVu_MouseLeave(object sender, EventArgs e)
        {
            this.CmdAllNghiepVu.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbtleftblue;
        }

        private void CmdNghiepVu_MouseMove(object sender, MouseEventArgs e)
        {
            this.CmdAllNghiepVu.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbtleftyellow;
        }

        private void CmdTaiSanCoDinh_Click(object sender, EventArgs e)
        {
            foreach (Form form in this.MdiChildren)
            {
                form.Close();
            }
            MyProject.Forms.Frm_TSCD.MdiParent = this;
            MyProject.Forms.Frm_TSCD.WindowState = FormWindowState.Maximized;
            MyProject.Forms.Frm_TSCD.Show();
            this.LoadMenu("TS");
        }

        private void CmdGiaThanh_Click(object sender, EventArgs e)
        {
            foreach (Form form in this.MdiChildren)
            {
                form.Close();
            }
            MyProject.Forms.Frm_GiaThanh.MdiParent = this;
            MyProject.Forms.Frm_GiaThanh.WindowState = FormWindowState.Maximized;
            MyProject.Forms.Frm_GiaThanh.Show();
            this.LoadMenu("GT");
        }

        private void ContentsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LVYModule.ShowHelp("Gioi thieu.mht");
        }

        public void CreateFileDangKy(string FileName)
        {
            XmlDocument document = new XmlDocument();
            XmlElement newChild = document.CreateElement("EDRAGON");
            XmlElement element = document.CreateElement("UserSettings");
            newChild.AppendChild(element);
            element = document.CreateElement("OperatingSystem");
            newChild.AppendChild(element);
            element = document.CreateElement("GUID");
            newChild.AppendChild(element);
            element = document.CreateElement("USERID");
            newChild.AppendChild(element);
            element = document.CreateElement("LOCALPATH");
            newChild.AppendChild(element);
            element = document.CreateElement("CompID");
            newChild.AppendChild(element);
            element = document.CreateElement("Enable");
            newChild.AppendChild(element);
            document.AppendChild(newChild);
            document.Save(FileName);
            LVYModule.CloseFileLicense();
        }

        public void CreateValueLicense()
        {
            try
            {
                CurrentDate date;
                date.Day = Conversions.ToString(DateTime.Now.Day);
                date.Month = Conversions.ToString(DateTime.Now.Month);
                date.Year = Conversions.ToString(DateTime.Now.Year);
                LVYModule.OpenFileLicense();
                if (File.Exists(this.strPathMVC))
                {
                    FileInfo fileInfo = MyProject.Computer.FileSystem.GetFileInfo(this.strPathMVC);
                    fileInfo.IsReadOnly = true;
                    LVYModule.WriteValueElementFromXML(this.strPathXML, "UserSettings", fileInfo.LastWriteTime.Day.ToString().Trim());
                    LVYModule.WriteValueElementFromXML(this.strPathXML, "OperatingSystem", fileInfo.LastWriteTime.Month.ToString().Trim());
                    LVYModule.WriteValueElementFromXML(this.strPathXML, "GUID", fileInfo.LastWriteTime.Year.ToString().Trim());
                    LVYModule.WriteValueElementFromXML(this.strPathXML, "Enable", "1");
                }
                else
                {
                    LVYModule.WriteValueElementFromXML(this.strPathXML, "UserSettings", date.Day.ToString().Trim());
                    LVYModule.WriteValueElementFromXML(this.strPathXML, "OperatingSystem", date.Month.ToString().Trim());
                    LVYModule.WriteValueElementFromXML(this.strPathXML, "GUID", date.Year.ToString().Trim());
                    LVYModule.WriteValueElementFromXML(this.strPathXML, "Enable", "1");
                    File.Create(this.strPathMVC);
                    MyProject.Computer.FileSystem.GetFileInfo(this.strPathMVC).IsReadOnly = true;
                }
                LVYModule.CloseFileLicense();
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                ProjectData.ClearProjectError();
            }
        }

        private void DangKyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!MyProject.Forms.Frm_DangKyBanQuyen.Visible)
            {
                MyProject.Forms.Frm_DangKyBanQuyen.objFrmCall = this;
                MyProject.Forms.Frm_DangKyBanQuyen.ShowDialog();
            }
        }

        public object DiffDate(string OrigDay, string OrigMonth, string OrigYear)
        {
            object obj2;
            try
            {
                object obj3 = OrigDay + "/" + OrigMonth + "/" + OrigYear;
                obj2 = DateAndTime.DateDiff(DateInterval.Day, Conversions.ToDate(obj3), DateTime.Now, FirstDayOfWeek.Sunday, FirstWeekOfYear.Jan1);
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                obj2 = 0;
                ProjectData.ClearProjectError();
                return obj2;
                ProjectData.ClearProjectError();
            }
            return obj2;
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        public void EnabledMenu(bool pEnabled)
        {
            this.CmdMuaHang.Enabled = pEnabled;
            this.CmdBanHang.Enabled = pEnabled;
            this.CmdKTKho.Enabled = pEnabled;
            this.CmdTaiSanCoDinh.Enabled = pEnabled;
            this.CmdGiaThanh.Enabled = pEnabled;
            this.CmdKTTongHop.Enabled = pEnabled;
            this.CmdAllNghiepVu.Enabled = pEnabled;
            this.THONGTIN.Enabled = pEnabled;
            this.mnQuanLyNguoiDung.Enabled = pEnabled;
            this.MnKhoaSo.Enabled = pEnabled;
            this.mnDoiMatKhau.Enabled = pEnabled;
            this.mnCapNhatTuDien.Enabled = pEnabled;
            this.mnGiaTriMacDinh.Enabled = pEnabled;
            this.CmdKeToanKho.Enabled = pEnabled;
            this.mnXoaTrangDuLieu.Enabled = pEnabled;
            this.mnHienThiChucNang.Enabled = pEnabled;
            this.ImportExcelToolStripMenuItem.Enabled = pEnabled;
        }

        private void ExitToolsStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void FRMMAIN_Disposed(object sender, EventArgs e)
        {
            this.objU.LoggedIn(modGeneral.H_USERNAME, 0);
        }

        private void FRMMAIN_HelpRequested(object sender, HelpEventArgs hlpevent)
        {
        }

        private void FRMMAIN_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F1)
            {
                LVYModule.ShowHelp("Gioi thieu.mht");
            }
        }

        private void FRMMAIN_Load(object sender, EventArgs e)
        {
            string str5 = "FIXPATH_DRAGON2";
            foreach (Process process in Process.GetProcesses())
            {
                if (process.ProcessName == str5)
                {
                    this.Dispose();
                    return;
                }
            }
            if (!LVYModule.FormatDateInRegional())
            {
                this.Dispose();
            }
            else
            {
                if (!Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\DRAGON2"))
                {
                    Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\DRAGON2");
                    Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\DRAGON2\TEMP");
                }
                else if (!Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\DRAGON2\TEMP"))
                {
                    Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\DRAGON2\TEMP");
                }
                foreach (string str8 in Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\DRAGON2\TEMP"))
                {
                    File.Delete(str8);
                }
                try
                {
                    if (!File.Exists(this.strPathXML))
                    {
                        this.CreateFileDangKy(this.strPathXML);
                    }
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    ProjectData.ClearProjectError();
                }
                MyProject.Computer.FileSystem.GetFileInfo(this.strPathXML).IsReadOnly = false;
                string origDay = "";
                string origMonth = "";
                string origYear = "";
                string str7 = "";
                string str6 = "";
                string str = "";
                string str9 = "";
                LVYModule.OpenFileLicense();
                origDay = LVYModule.ReadValueElementFromXML(this.strPathXML, "UserSettings");
                origMonth = LVYModule.ReadValueElementFromXML(this.strPathXML, "OperatingSystem");
                origYear = LVYModule.ReadValueElementFromXML(this.strPathXML, "GUID");
                str7 = LVYModule.ReadValueElementFromXML(this.strPathXML, "USERID");
                str6 = LVYModule.ReadValueElementFromXML(this.strPathXML, "LOCALPATH");
                str = LVYModule.ReadValueElementFromXML(this.strPathXML, "CompID");
                str9 = LVYModule.ReadValueElementFromXML(this.strPathXML, "Enable");
                LVYModule.CloseFileLicense();
                if (origDay == "")
                {
                    this.CreateValueLicense();
                    LVYModule.OpenFileLicense();
                    origDay = LVYModule.ReadValueElementFromXML(this.strPathXML, "UserSettings");
                    origMonth = LVYModule.ReadValueElementFromXML(this.strPathXML, "OperatingSystem");
                    origYear = LVYModule.ReadValueElementFromXML(this.strPathXML, "GUID");
                    str7 = LVYModule.ReadValueElementFromXML(this.strPathXML, "USERID");
                    str6 = LVYModule.ReadValueElementFromXML(this.strPathXML, "LOCALPATH");
                    str = LVYModule.ReadValueElementFromXML(this.strPathXML, "CompID");
                    str9 = LVYModule.ReadValueElementFromXML(this.strPathXML, "Enable");
                    LVYModule.CloseFileLicense();
                }
                else if (!File.Exists(this.strPathMVC))
                {
                    File.Create(this.strPathMVC);
                    MyProject.Computer.FileSystem.GetFileInfo(this.strPathMVC).IsReadOnly = true;
                }
                this.UsedTrialDays = Conversions.ToString(this.DiffDate(origDay, origMonth, origYear));
                if (((Conversions.ToDouble(this.UsedTrialDays) >= this.TrialPeriod) & (str7.Trim() == "")) & (str6.Trim() == ""))
                {
                    this.InTrial = false;
                    LVYModule.OpenFileLicense();
                    LVYModule.WriteValueElementFromXML(this.strPathXML, "Enable", "1");
                    LVYModule.CloseFileLicense();
                }
                if (origMonth != "")
                {
                    string str10 = origDay + "/" + origMonth + "/" + origYear;
                    if (DateTime.Compare(DateTime.Now, Conversions.ToDate(str10)) < 0)
                    {
                        this.InTrial = false;
                        LVYModule.OpenFileLicense();
                        LVYModule.WriteValueElementFromXML(this.strPathXML, "Enable", "1");
                        LVYModule.CloseFileLicense();
                        LVYModule.ShowWarning("Bạn đ\x00e3 chỉnh lại ng\x00e0y giờ hệ thống kh\x00e1c với ng\x00e0y đăng k\x00fd chương tr\x00ecnh ! Xin chọn ng\x00e0y hiện h\x00e0nh ph\x00f9 hợp với ng\x00e0y đăng k\x00fd !");
                        Application.Exit();
                        return;
                    }
                }
                if (str7 != "")
                {
                    if ((GetMachineInfoModule.GetVolumeSerial("") == str6) & (GetMachineInfoModule.GetCPUId() == str7))
                    {
                        if (MotherBoardID.GetMotherBoardID().Trim().Trim() == str)
                        {
                            this.InTrial = false;
                            this.FullVersion = true;
                            LVYModule.OpenFileLicense();
                            LVYModule.WriteValueElementFromXML(this.strPathXML, "Enable", "");
                            LVYModule.CloseFileLicense();
                            this.ToolStripMenuItem_DKBQ.Visible = false;
                        }
                        else if (Conversions.ToDouble(this.UsedTrialDays) >= this.TrialPeriod)
                        {
                            this.InTrial = false;
                            LVYModule.OpenFileLicense();
                            LVYModule.WriteValueElementFromXML(this.strPathXML, "Enable", "1");
                            LVYModule.CloseFileLicense();
                        }
                    }
                    else if (Conversions.ToDouble(this.UsedTrialDays) >= this.TrialPeriod)
                    {
                        this.InTrial = false;
                        LVYModule.OpenFileLicense();
                        LVYModule.WriteValueElementFromXML(this.strPathXML, "Enable", "1");
                        LVYModule.CloseFileLicense();
                    }
                }
                if (!this.ThongBaoHanSuDung(Conversions.ToInteger(this.UsedTrialDays), this.TrialPeriod))
                {
                    Application.ExitThread();
                    Application.Exit();
                }
                else
                {
                    if (!LVYModule.InitConnection())
                    {
                        MyProject.Forms.Frm_DangKyDuLieu.ShowDialog();
                        MyProject.Forms.Frm_DangKyDuLieu.BringToFront();
                        if (LVYModule.ReturnIfNull(modGeneral.ConnectionString, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=;PWD=;Initial Catalog=;Data Source=")
                        {
                            this.Dispose();
                            return;
                        }
                    }
                    this.TabLeft.Visible = false;
                    MyProject.Forms.Frm_main.MdiParent = this;
                    MyProject.Forms.Frm_main.WindowState = FormWindowState.Maximized;
                    MyProject.Forms.Frm_main.Show();
                    this.EnabledMenu(false);
                    this.ToolStripStatusLabel1.Text = modGeneral.Tranlated("Ng\x00e0y", "") + ": " + DateTime.Now.ToShortDateString();
                    this.LblDangNhap.Visible = false;
                }
            }

            SetEvents();
        }

        public void HideNodeNull(TreeNode nNode)
        {
            int num = 0;
            if (Conversions.ToBoolean(Microsoft.VisualBasic.CompilerServices.Operators.AndObject(Microsoft.VisualBasic.CompilerServices.Operators.CompareObjectNotEqual(nNode.Tag, "MN", false), nNode.Nodes.Count > 0)))
            {
                int num2 = nNode.Nodes.Count - 1;
                for (num = 0; num <= num2; num++)
                {
                    if (num <= (nNode.Nodes.Count - 1))
                    {
                        this.HideNodeNull(nNode.Nodes[num]);
                        if (this.Flag)
                        {
                            num--;
                            this.Flag = false;
                        }
                    }
                }
            }
            if (Conversions.ToBoolean(Microsoft.VisualBasic.CompilerServices.Operators.AndObject(Microsoft.VisualBasic.CompilerServices.Operators.CompareObjectNotEqual(nNode.Tag, "MN", false), nNode.Nodes.Count <= 0)))
            {
                nNode.Remove();
                this.Flag = true;
            }
            else
            {
                this.Flag = false;
            }
        }

        private void HienThiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Show();
            this.WindowState = FormWindowState.Maximized;
            this.BringToFront();
        }

        [DllImport("hhctrl.ocx")]
        private static extern bool HtmlHelp(IntPtr handle, string file, int command, int data);
        private void ImportExcelToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_NhapDuLieu.Dispose();
            MyProject.Forms.Frm_NhapDuLieu.ShowDialog();
            MyProject.Forms.Frm_NhapDuLieu.BringToFront();
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            manager = new ComponentResourceManager(typeof(FRMMAIN));
            this._ToolTip = new System.Windows.Forms.ToolTip(this.components);
            this._ImageList1 = new ImageList(this.components);
            this._CmdDockLeft = new C1CommandDock();
            this._TabLeft = new C1DockingTab();
            this._TabMenu = new C1DockingTabPage();
            this._TVMenu = new TreeView();
            this._pLeftBottom = new Panel();
            this._CmdAllNghiepVu = new Button();
            this._Panel1 = new Panel();
            this._Label1 = new Label();
            this._txtKiemTraHoaDon = new TextBox();
            this._Timer1 = new Timer(this.components);
            this._Timer2 = new Timer(this.components);
            this._NotifyIcon1 = new NotifyIcon(this.components);
            this._ContextMenuStrip1 = new ContextMenuStrip(this.components);
            this._HienThiToolStripMenuItem = new ToolStripMenuItem();
            this._ToolStripSeparator1 = new ToolStripSeparator();
            this._TroGiupToolStripMenuItem = new ToolStripMenuItem();
            this._HoTroToolStripMenuItem = new ToolStripMenuItem();
            this._DangKyToolStripMenuItem = new ToolStripMenuItem();
            this._CapNhatPMToolStripMenuItem = new ToolStripMenuItem();
            this._ThongTinToolStripMenuItem = new ToolStripMenuItem();
            this._ToolStripMenuItem2 = new ToolStripSeparator();
            this._ThoatChươngTrìnhToolStripMenuItem = new ToolStripMenuItem();
            this._ToolStrip = new System.Windows.Forms.ToolStrip();
            this._CmdMuaHang = new ToolStripButton();
            this._CmdBanHang = new ToolStripButton();
            this._CmdKTKho = new ToolStripButton();
            this._CmdKeToanKho = new ToolStripButton();
            this._CmdKTTongHop = new ToolStripButton();
            this._CmdTaiSanCoDinh = new ToolStripButton();
            this._CmdGiaThanh = new ToolStripButton();
            this._ToolStripButton1 = new ToolStripButton();
            this._CmdHopDong = new ToolStripButton();
            this._MenuStrip = new System.Windows.Forms.MenuStrip();
            this._HETHONGMENU = new ToolStripMenuItem();
            this._CmdDangNhap = new ToolStripMenuItem();
            this._mnDoiMatKhau = new ToolStripMenuItem();
            this._THONGTIN = new ToolStripMenuItem();
            this._ImportExcelToolStripMenuItem = new ToolStripMenuItem();
            this._TTDangKyDuLieu = new ToolStripMenuItem();
            this._TTKetNoiCSDL = new ToolStripMenuItem();
            this._mnGiaTriMacDinh = new ToolStripMenuItem();
            this._NGONNGU = new ToolStripMenuItem();
            this._TIENGVIET = new ToolStripMenuItem();
            this._TIENGANH = new ToolStripMenuItem();
            this._ToolStripSeparator5 = new ToolStripSeparator();
            this._mnQuanLyNguoiDung = new ToolStripMenuItem();
            this._ToolStripSeparator12 = new ToolStripSeparator();
            this._MnKhoaSo = new ToolStripMenuItem();
            this._mnXoaTrangDuLieu = new ToolStripMenuItem();
            this._mnCapNhatTuDien = new ToolStripMenuItem();
            this._mnHienThiChucNang = new ToolStripMenuItem();
            this._ToolStripSeparator3 = new ToolStripSeparator();
            this._ExitToolStripMenuItem = new ToolStripMenuItem();
            this._HelpMenu = new ToolStripMenuItem();
            this._ContentsToolStripMenuItem = new ToolStripMenuItem();
            this._IndexToolStripMenuItem = new ToolStripMenuItem();
            this._SearchToolStripMenuItem = new ToolStripMenuItem();
            this._SupportToolStripMenuItem = new ToolStripMenuItem();
            this._ToolStripSeparator8 = new ToolStripSeparator();
            this._ToolStripMenuItem_DKBQ = new ToolStripMenuItem();
            this._CapNhatToolStripMenuItem = new ToolStripMenuItem();
            this._AboutToolStripMenuItem = new ToolStripMenuItem();
            this._StatusStrip = new System.Windows.Forms.StatusStrip();
            this._ToolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
            this._ToolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
            this._LblBar2 = new System.Windows.Forms.ToolStripStatusLabel();
            this._LblGio = new System.Windows.Forms.ToolStripStatusLabel();
            this._LblBar1 = new System.Windows.Forms.ToolStripStatusLabel();
            this._LblDangNhap = new System.Windows.Forms.ToolStripStatusLabel();
            ((ISupportInitialize)this._CmdDockLeft).BeginInit();
            this._CmdDockLeft.SuspendLayout();
            ((ISupportInitialize)this._TabLeft).BeginInit();
            this._TabLeft.SuspendLayout();
            this._TabMenu.SuspendLayout();
            this._pLeftBottom.SuspendLayout();
            this._Panel1.SuspendLayout();
            this._ContextMenuStrip1.SuspendLayout();
            this._ToolStrip.SuspendLayout();
            this._MenuStrip.SuspendLayout();
            this._StatusStrip.SuspendLayout();
            this.SuspendLayout();
            this._ImageList1.ImageStream = (ImageListStreamer)manager.GetObject("ImageList1.ImageStream");
            this._ImageList1.TransparentColor = Color.Transparent;
            this._ImageList1.Images.SetKeyName(0, "chuyen.jpg");
            this._ImageList1.Images.SetKeyName(1, "kt.jpg");
            this._ImageList1.Images.SetKeyName(2, "nhansu.jpg");
            this._ImageList1.Images.SetKeyName(3, "np.jpg");
            this._ImageList1.Images.SetKeyName(4, "hd.jpg");
            this._ImageList1.Images.SetKeyName(5, "usd.jpg");
            this._ImageList1.Images.SetKeyName(6, "SharedUSD.gif");
            this._ImageList1.Images.SetKeyName(7, "aaa.gif");
            this._ImageList1.Images.SetKeyName(8, "ghi.jpg");
            this._ImageList1.Images.SetKeyName(9, "computer.gif");
            this._ImageList1.Images.SetKeyName(10, "kep.gif");
            this._ImageList1.Images.SetKeyName(11, "So.gif");
            this._ImageList1.Images.SetKeyName(12, "book.gif");
            this._ImageList1.Images.SetKeyName(13, "bookopen.gif");
            this._ImageList1.Images.SetKeyName(14, "checkingacct.jpg");
            this._ImageList1.Images.SetKeyName(15, "inventory.jpg");
            this._ImageList1.Images.SetKeyName(0x10, "customer.jpg");
            this._CmdDockLeft.Controls.Add(this._TabLeft);
            this._CmdDockLeft.Dock = DockStyle.Left;
            this._CmdDockLeft.Id = 1;
            //Point point = new Point(0, 0x37);
            this._CmdDockLeft.Location = new Point(0, 0x37);
            this._CmdDockLeft.Name = "CmdDockLeft";
            //Size size = new Size(0x106, 650);
            this._CmdDockLeft.Size = new Size(0x106, 650);
            this._TabLeft.Alignment = TabAlignment.Bottom;
            this._TabLeft.AllowDrop = true;
            this._TabLeft.BorderStyle = BorderStyle.None;
            this._TabLeft.CanAutoHide = true;
            this._TabLeft.Controls.Add(this._TabMenu);
            //point = new Point(0, 0);
            this._TabLeft.Location = new Point(0, 0);
            this._TabLeft.Name = "TabLeft";
            this._TabLeft.SelectedIndex = 1;
            this._TabLeft.ShowCaption = true;
            //size = new Size(0x106, 650);
            this._TabLeft.Size = new Size(0x106, 650);
            this._TabLeft.TabIndex = 0;
            this._TabLeft.TabSizeMode = TabSizeModeEnum.Fit;
            this._TabLeft.TabsSpacing = 5;
            this._TabLeft.TabStyle = TabStyleEnum.Office2007;
            this._TabLeft.Visible = false;
            this._TabLeft.VisualStyle = VisualStyle.Office2007Blue;
            this._TabLeft.VisualStyleBase = VisualStyle.Office2007Blue;
            this._TabMenu.Controls.Add(this._TVMenu);
            this._TabMenu.Controls.Add(this._pLeftBottom);
            this._TabMenu.Controls.Add(this._Panel1);
            //point = new Point(0, 0);
            this._TabMenu.Location = new Point(0, 0);
            this._TabMenu.Name = "TabMenu";
            //size = new Size(0x103, 0x272);
            this._TabMenu.Size = new Size(0x103, 0x272);
            this._TabMenu.TabIndex = 1;
            this._TabMenu.Text = "Menu";
            this._TVMenu.Dock = DockStyle.Fill;
            this._TVMenu.ImageIndex = 0;
            this._TVMenu.ImageList = this._ImageList1;
            //point = new Point(0, 20);
            this._TVMenu.Location = new Point(0, 20);
            this._TVMenu.Name = "TVMenu";
            this._TVMenu.SelectedImageIndex = 0;
            //size = new Size(0x103, 0x217);
            this._TVMenu.Size = new Size(0x103, 0x217);
            this._TVMenu.TabIndex = 0x21;
            this._pLeftBottom.Controls.Add(this._CmdAllNghiepVu);
            this._pLeftBottom.Dock = DockStyle.Bottom;
            //point = new Point(0, 0x22b);
            this._pLeftBottom.Location = new Point(0, 0x22b);
            this._pLeftBottom.Name = "pLeftBottom";
            //size = new Size(0x103, 0x19);
            this._pLeftBottom.Size = new Size(0x103, 0x19);
            this._pLeftBottom.TabIndex = 0x22;
            this._CmdAllNghiepVu.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbtleftblue;
            this._CmdAllNghiepVu.FlatAppearance.BorderSize = 0;
            this._CmdAllNghiepVu.FlatStyle = FlatStyle.Flat;
            this._CmdAllNghiepVu.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            //point = new Point(0, -1);
            this._CmdAllNghiepVu.Location = new Point(0, -1);
            this._CmdAllNghiepVu.Name = "CmdAllNghiepVu";
            //size = new Size(0x103, 0x1a);
            this._CmdAllNghiepVu.Size = new Size(0x103, 0x1a);
            this._CmdAllNghiepVu.TabIndex = 2;
            this._CmdAllNghiepVu.Tag = "NGHIEPVUMN";
            this._CmdAllNghiepVu.Text = "Khai b\x00e1o danh mục";
            this._CmdAllNghiepVu.TextAlign = ContentAlignment.MiddleLeft;
            this._CmdAllNghiepVu.UseVisualStyleBackColor = true;
            this._Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this._Panel1.Controls.Add(this._Label1);
            this._Panel1.Controls.Add(this._txtKiemTraHoaDon);
            this._Panel1.Dock = DockStyle.Bottom;
            //point = new Point(0, 580);
            this._Panel1.Location = new Point(0, 580);
            this._Panel1.Name = "Panel1";
            Padding padding = new Padding(5);
            this._Panel1.Padding = padding;
            //size = new Size(0x103, 0x2e);
            this._Panel1.Size = new Size(0x103, 0x2e);
            this._Panel1.TabIndex = 0x23;
            this._Label1.AutoSize = true;
            this._Label1.BackColor = Color.Transparent;
            this._Label1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            //point = new Point(3, 6);
            this._Label1.Location = new Point(3, 6);
            this._Label1.Name = "Label1";
            //size = new Size(0x68, 13);
            this._Label1.Size = new Size(0x68, 13);
            this._Label1.TabIndex = 9;
            this._Label1.Text = "Kiểm tra h\x00f3a đơn";
            this._txtKiemTraHoaDon.BackColor = Color.Khaki;
            this._txtKiemTraHoaDon.Dock = DockStyle.Bottom;
            //point = new Point(5, 0x15);
            this._txtKiemTraHoaDon.Location = new Point(5, 0x15);
            this._txtKiemTraHoaDon.Name = "txtKiemTraHoaDon";
            //size = new Size(0xf9, 20);
            this._txtKiemTraHoaDon.Size = new Size(0xf9, 20);
            this._txtKiemTraHoaDon.TabIndex = 0;
            this._Timer1.Enabled = true;
            this._Timer2.Enabled = true;
            this._Timer2.Interval = 0x3e8;
            this._NotifyIcon1.ContextMenuStrip = this._ContextMenuStrip1;
            this._NotifyIcon1.Icon = (Icon)manager.GetObject("NotifyIcon1.Icon");
            this._NotifyIcon1.Text = "DRAGON 2";
            this._NotifyIcon1.Visible = true;
            this._ContextMenuStrip1.Items.AddRange(new ToolStripItem[] { this._HienThiToolStripMenuItem, this._ToolStripSeparator1, this._TroGiupToolStripMenuItem, this._HoTroToolStripMenuItem, this._DangKyToolStripMenuItem, this._CapNhatPMToolStripMenuItem, this._ThongTinToolStripMenuItem, this._ToolStripMenuItem2, this._ThoatChươngTrìnhToolStripMenuItem });
            this._ContextMenuStrip1.Name = "ContextMenuStrip1";
            //size = new Size(0xbc, 170);
            this._ContextMenuStrip1.Size = new Size(0xbc, 170);
            this._HienThiToolStripMenuItem.Font = new Font("Segoe UI", 9f, FontStyle.Bold);
            this._HienThiToolStripMenuItem.Name = "HienThiToolStripMenuItem";
            //size = new Size(0xbb, 0x16);
            this._HienThiToolStripMenuItem.Size = new Size(0xbb, 0x16);
            this._HienThiToolStripMenuItem.Text = "Hiển thị ";
            this._ToolStripSeparator1.Name = "ToolStripSeparator1";
            //size = new Size(0xb8, 6);
            this._ToolStripSeparator1.Size = new Size(0xb8, 6);
            this._TroGiupToolStripMenuItem.Name = "TroGiupToolStripMenuItem";
            //size = new Size(0xbb, 0x16);
            this._TroGiupToolStripMenuItem.Size = new Size(0xbb, 0x16);
            this._TroGiupToolStripMenuItem.Text = "Trợ gi\x00fap";
            this._HoTroToolStripMenuItem.Name = "HoTroToolStripMenuItem";
            //size = new Size(0xbb, 0x16);
            this._HoTroToolStripMenuItem.Size = new Size(0xbb, 0x16);
            this._HoTroToolStripMenuItem.Text = "Hỗ trợ trực tuyến";
            this._DangKyToolStripMenuItem.Name = "DangKyToolStripMenuItem";
            //size = new Size(0xbb, 0x16);
            this._DangKyToolStripMenuItem.Size = new Size(0xbb, 0x16);
            this._DangKyToolStripMenuItem.Text = "Đăng k\x00fd bản quyền";
            this._CapNhatPMToolStripMenuItem.Name = "CapNhatPMToolStripMenuItem";
            //size = new Size(0xbb, 0x16);
            this._CapNhatPMToolStripMenuItem.Size = new Size(0xbb, 0x16);
            this._CapNhatPMToolStripMenuItem.Text = "Cập nhật phi\x00ean bản";
            this._ThongTinToolStripMenuItem.Name = "ThongTinToolStripMenuItem";
            //size = new Size(0xbb, 0x16);
            this._ThongTinToolStripMenuItem.Size = new Size(0xbb, 0x16);
            this._ThongTinToolStripMenuItem.Text = "Th\x00f4ng tin phần mềm";
            this._ToolStripMenuItem2.Name = "ToolStripMenuItem2";
            //size = new Size(0xb8, 6);
            this._ToolStripMenuItem2.Size = new Size(0xb8, 6);
            this._ThoatChươngTrìnhToolStripMenuItem.Name = "ThoatChươngTr\x00ecnhToolStripMenuItem";
            //size = new Size(0xbb, 0x16);
            this._ThoatChươngTrìnhToolStripMenuItem.Size = new Size(0xbb, 0x16);
            this._ThoatChươngTrìnhToolStripMenuItem.Text = "Tho\x00e1t ";
            this._ToolStrip.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this._ToolStrip.Items.AddRange(new ToolStripItem[] { this._CmdMuaHang, this._CmdBanHang, this._CmdKTKho, this._CmdKeToanKho, this._CmdKTTongHop, this._CmdTaiSanCoDinh, this._CmdGiaThanh, this._ToolStripButton1, this._CmdHopDong });
            //point = new Point(0, 0x18);
            this._ToolStrip.Location = new Point(0, 0x18);
            this._ToolStrip.Name = "ToolStrip";
            //size = new Size(0x452, 0x1f);
            this._ToolStrip.Size = new Size(0x452, 0x1f);
            this._ToolStrip.TabIndex = 6;
            this._ToolStrip.Text = "ToolStrip";
            this._CmdMuaHang.Image = (Image)manager.GetObject("CmdMuaHang.Image");
            this._CmdMuaHang.ImageScaling = ToolStripItemImageScaling.None;
            this._CmdMuaHang.ImageTransparentColor = Color.White;
            this._CmdMuaHang.Name = "CmdMuaHang";
            //size = new Size(0x86, 0x1c);
            this._CmdMuaHang.Size = new Size(0x86, 0x1c);
            this._CmdMuaHang.Text = "Kế to\x00e1n mua h\x00e0ng";
            this._CmdBanHang.Image = (Image)manager.GetObject("CmdBanHang.Image");
            this._CmdBanHang.ImageScaling = ToolStripItemImageScaling.None;
            this._CmdBanHang.ImageTransparentColor = Color.DarkMagenta;
            this._CmdBanHang.Name = "CmdBanHang";
            //size = new Size(0x80, 0x1c);
            this._CmdBanHang.Size = new Size(0x80, 0x1c);
            this._CmdBanHang.Text = "Kế to\x00e1n b\x00e1n h\x00e0ng";
            this._CmdKTKho.Image = (Image)manager.GetObject("CmdKTKho.Image");
            this._CmdKTKho.ImageScaling = ToolStripItemImageScaling.None;
            this._CmdKTKho.ImageTransparentColor = Color.White;
            this._CmdKTKho.Name = "CmdKTKho";
            //size = new Size(0x94, 0x1c);
            this._CmdKTKho.Size = new Size(0x94, 0x1c);
            this._CmdKTKho.Text = "Kế to\x00e1n vốn bằng tiền";
            this._CmdKTKho.TextAlign = ContentAlignment.MiddleRight;
            this._CmdKeToanKho.Image = (Image)manager.GetObject("CmdKeToanKho.Image");
            this._CmdKeToanKho.ImageScaling = ToolStripItemImageScaling.None;
            this._CmdKeToanKho.ImageTransparentColor = Color.Magenta;
            this._CmdKeToanKho.Name = "CmdKeToanKho";
            //size = new Size(0x80, 0x1c);
            this._CmdKeToanKho.Size = new Size(0x80, 0x1c);
            this._CmdKeToanKho.Text = "Kế to\x00e1n kho h\x00e0ng";
            this._CmdKTTongHop.Image = (Image)manager.GetObject("CmdKTTongHop.Image");
            this._CmdKTTongHop.ImageScaling = ToolStripItemImageScaling.None;
            this._CmdKTTongHop.ImageTransparentColor = Color.White;
            this._CmdKTTongHop.Name = "CmdKTTongHop";
            //size = new Size(0x80, 0x1c);
            this._CmdKTTongHop.Size = new Size(0x80, 0x1c);
            this._CmdKTTongHop.Text = "Kế to\x00e1n tổng hợp";
            this._CmdTaiSanCoDinh.Image = (Image)manager.GetObject("CmdTaiSanCoDinh.Image");
            this._CmdTaiSanCoDinh.ImageScaling = ToolStripItemImageScaling.None;
            this._CmdTaiSanCoDinh.ImageTransparentColor = Color.Magenta;
            this._CmdTaiSanCoDinh.Name = "CmdTaiSanCoDinh";
            //size = new Size(0x9b, 0x1c);
            this._CmdTaiSanCoDinh.Size = new Size(0x9b, 0x1c);
            this._CmdTaiSanCoDinh.Text = "Tài Sản Cố Định";
            this._CmdGiaThanh.Image = (Image)manager.GetObject("CmdTaiSanCoDinh.Image");
            this._CmdGiaThanh.ImageScaling = ToolStripItemImageScaling.None;
            this._CmdGiaThanh.ImageTransparentColor = Color.Magenta;
            this._CmdGiaThanh.Name = "CmdGiaThanh";
            //size = new Size(0x9b, 0x1c);
            this._CmdGiaThanh.Size = new Size(0x9b, 0x1c);
            this._CmdGiaThanh.Text = "Giá Thành Sản Xuất";
            this._ToolStripButton1.Alignment = ToolStripItemAlignment.Right;
            this._ToolStripButton1.Image = (Image)manager.GetObject("ToolStripButton1.Image");
            this._ToolStripButton1.ImageScaling = ToolStripItemImageScaling.None;
            this._ToolStripButton1.ImageTransparentColor = Color.Magenta;
            this._ToolStripButton1.Name = "ToolStripButton1";
            //size = new Size(0x3a, 0x1c);
            this._ToolStripButton1.Size = new Size(0x3a, 0x1c);
            this._ToolStripButton1.Text = "Help";
            this._CmdHopDong.Image = (Image)manager.GetObject("CmdHopDong.Image");
            this._CmdHopDong.ImageScaling = ToolStripItemImageScaling.None;
            this._CmdHopDong.ImageTransparentColor = Color.Magenta;
            this._CmdHopDong.Name = "CmdHopDong";
            //size = new Size(0x59, 0x1c);
            this._CmdHopDong.Size = new Size(0x59, 0x1c);
            this._CmdHopDong.Text = "Hợp đồng";
            this._CmdHopDong.Visible = false;
            this._MenuStrip.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbtleftblue;
            this._MenuStrip.GripStyle = ToolStripGripStyle.Visible;
            this._MenuStrip.Items.AddRange(new ToolStripItem[] { this._HETHONGMENU, this._HelpMenu });
            //point = new Point(0, 0);
            this._MenuStrip.Location = new Point(0, 0);
            this._MenuStrip.Name = "MenuStrip";
            //size = new Size(0x452, 0x18);
            this._MenuStrip.Size = new Size(0x452, 0x18);
            this._MenuStrip.TabIndex = 5;
            this._MenuStrip.Text = "MenuStrip";
            this._HETHONGMENU.DropDownItems.AddRange(new ToolStripItem[] { 
                this._CmdDangNhap, this._mnDoiMatKhau, this._THONGTIN, this._ImportExcelToolStripMenuItem, this._TTDangKyDuLieu, this._TTKetNoiCSDL,
                this._mnGiaTriMacDinh, this._NGONNGU, this._ToolStripSeparator5, this._mnQuanLyNguoiDung, this._ToolStripSeparator12, 
                this._MnKhoaSo, this._mnXoaTrangDuLieu, this._mnCapNhatTuDien, this._mnHienThiChucNang, this._ToolStripSeparator3, 
                this._ExitToolStripMenuItem
             });
            this._HETHONGMENU.ImageTransparentColor = SystemColors.ActiveBorder;
            this._HETHONGMENU.Name = "HETHONGMENU";
            //size = new Size(0x45, 20);
            this._HETHONGMENU.Size = new Size(0x45, 20);
            this._HETHONGMENU.Text = "&Hệ thống";
            this._CmdDangNhap.Name = "CmdDangNhap";
            this._CmdDangNhap.ShortcutKeys = Keys.F2;
            //size = new Size(0xca, 0x16);
            this._CmdDangNhap.Size = new Size(0xca, 0x16);
            this._CmdDangNhap.Text = "Đăng nhập hệ thống";
            this._mnDoiMatKhau.Name = "mnDoiMatKhau";
            //size = new Size(0xca, 0x16);
            this._mnDoiMatKhau.Size = new Size(0xca, 0x16);
            this._mnDoiMatKhau.Text = "Đổi mật khẩu";
            this._THONGTIN.Name = "THONGTIN";
            //size = new Size(0xca, 0x16);
            this._THONGTIN.Size = new Size(0xca, 0x16);
            this._THONGTIN.Text = "Th\x00f4ng tin c\x00f4ng ty";
            this._ImportExcelToolStripMenuItem.Name = "ImportExcelToolStripMenuItem";
            //size = new Size(0xca, 0x16);
            this._ImportExcelToolStripMenuItem.Size = new Size(0xca, 0x16);
            this._ImportExcelToolStripMenuItem.Text = "Nhập dữ liệu từ Excel";
            this._TTDangKyDuLieu.Name = "TTDangKyDuLieu";
            //size = new Size(0xca, 0x16);
            this._TTDangKyDuLieu.Size = new Size(0xca, 0x16);
            this._TTDangKyDuLieu.Text = "Đăng k\x00fd dữ liệu";
            this._TTKetNoiCSDL.Name = "TTKetNoiCSDL";
            //size = new Size(0xca, 0x16);
            this._TTKetNoiCSDL.Size = new Size(0xca, 0x16);
            this._TTKetNoiCSDL.Text = "Kết nối cơ sở dữ liệu";
            this._mnGiaTriMacDinh.Name = "mnGiaTriMacDinh";
            //size = new Size(0xca, 0x16);
            this._mnGiaTriMacDinh.Size = new Size(0xca, 0x16);
            this._mnGiaTriMacDinh.Text = "Gi\x00e1 trị mặc định";
            this._NGONNGU.DropDownItems.AddRange(new ToolStripItem[] { this._TIENGVIET, this._TIENGANH });
            this._NGONNGU.Name = "NGONNGU";
            //size = new Size(0xca, 0x16);
            this._NGONNGU.Size = new Size(0xca, 0x16);
            this._NGONNGU.Text = "Ng\x00f4n ngữ hiển thị";
            this._NGONNGU.Visible = false;
            this._TIENGVIET.Checked = true;
            this._TIENGVIET.CheckState = CheckState.Checked;
            this._TIENGVIET.Name = "TIENGVIET";
            //size = new Size(0x7f, 0x16);
            this._TIENGVIET.Size = new Size(0x7f, 0x16);
            this._TIENGVIET.Text = "Tiếng Việt";
            this._TIENGANH.Name = "TIENGANH";
            //size = new Size(0x7f, 0x16);
            this._TIENGANH.Size = new Size(0x7f, 0x16);
            this._TIENGANH.Text = "English";
            this._ToolStripSeparator5.Name = "ToolStripSeparator5";
            //size = new Size(0xc7, 6);
            this._ToolStripSeparator5.Size = new Size(0xc7, 6);
            this._mnQuanLyNguoiDung.Image = (Image)manager.GetObject("mnQuanLyNguoiDung.Image");
            this._mnQuanLyNguoiDung.Name = "mnQuanLyNguoiDung";
            //size = new Size(0xca, 0x16);
            this._mnQuanLyNguoiDung.Size = new Size(0xca, 0x16);
            this._mnQuanLyNguoiDung.Text = "Quản l\x00fd người d\x00f9ng";
            this._ToolStripSeparator12.Name = "ToolStripSeparator12";
            //size = new Size(0xc7, 6);
            this._ToolStripSeparator12.Size = new Size(0xc7, 6);
            this._MnKhoaSo.Name = "MnKhoaSo";
            //size = new Size(0xca, 0x16);
            this._MnKhoaSo.Size = new Size(0xca, 0x16);
            this._MnKhoaSo.Text = "Kh\x00f3a sổ";
            this._mnXoaTrangDuLieu.Name = "mnXoaTrangDuLieu";
            //size = new Size(0xca, 0x16);
            this._mnXoaTrangDuLieu.Size = new Size(0xca, 0x16);
            this._mnXoaTrangDuLieu.Text = "X\x00f3a trắng dữ liệu";
            this._mnCapNhatTuDien.Name = "mnCapNhatTuDien";
            //size = new Size(0xca, 0x16);
            this._mnCapNhatTuDien.Size = new Size(0xca, 0x16);
            this._mnCapNhatTuDien.Text = "Cập nhật từ điển";
            this._mnHienThiChucNang.Name = "mnHienThiChucNang";
            this._mnHienThiChucNang.ShortcutKeys = Keys.Control | Keys.R;
            //size = new Size(0xca, 0x16);
            this._mnHienThiChucNang.Size = new Size(0xca, 0x16);
            this._mnHienThiChucNang.Text = "Run";
            this._ToolStripSeparator3.Name = "ToolStripSeparator3";
            //size = new Size(0xc7, 6);
            this._ToolStripSeparator3.Size = new Size(0xc7, 6);
            this._ExitToolStripMenuItem.Name = "ExitToolStripMenuItem";
            //size = new Size(0xca, 0x16);
            this._ExitToolStripMenuItem.Size = new Size(0xca, 0x16);
            this._ExitToolStripMenuItem.Text = "E&xit";
            this._HelpMenu.DropDownItems.AddRange(new ToolStripItem[] { this._ContentsToolStripMenuItem, this._IndexToolStripMenuItem, this._SearchToolStripMenuItem, this._SupportToolStripMenuItem, this._ToolStripSeparator8, this._ToolStripMenuItem_DKBQ, this._CapNhatToolStripMenuItem, this._AboutToolStripMenuItem });
            this._HelpMenu.Name = "HelpMenu";
            //size = new Size(0x40, 20);
            this._HelpMenu.Size = new Size(0x40, 20);
            this._HelpMenu.Text = "&Trợ gi\x00fap";
            this._ContentsToolStripMenuItem.Name = "ContentsToolStripMenuItem";
            this._ContentsToolStripMenuItem.ShortcutKeys = Keys.F1;
            //size = new Size(0xbb, 0x16);
            this._ContentsToolStripMenuItem.Size = new Size(0xbb, 0x16);
            this._ContentsToolStripMenuItem.Text = "&Nội dung";
            this._IndexToolStripMenuItem.ImageTransparentColor = Color.Black;
            this._IndexToolStripMenuItem.Name = "IndexToolStripMenuItem";
            //size = new Size(0xbb, 0x16);
            this._IndexToolStripMenuItem.Size = new Size(0xbb, 0x16);
            this._IndexToolStripMenuItem.Text = "&Chỉ mục";
            this._IndexToolStripMenuItem.Visible = false;
            this._SearchToolStripMenuItem.ImageTransparentColor = Color.Black;
            this._SearchToolStripMenuItem.Name = "SearchToolStripMenuItem";
            //size = new Size(0xbb, 0x16);
            this._SearchToolStripMenuItem.Size = new Size(0xbb, 0x16);
            this._SearchToolStripMenuItem.Text = "&T\x00ecm kiếm";
            this._SearchToolStripMenuItem.Visible = false;
            this._SupportToolStripMenuItem.Name = "SupportToolStripMenuItem";
            //size = new Size(0xbb, 0x16);
            this._SupportToolStripMenuItem.Size = new Size(0xbb, 0x16);
            this._SupportToolStripMenuItem.Text = "Hỗ trợ trực tuyến";
            this._ToolStripSeparator8.Name = "ToolStripSeparator8";
            //size = new Size(0xb8, 6);
            this._ToolStripSeparator8.Size = new Size(0xb8, 6);
            this._ToolStripMenuItem_DKBQ.Name = "ToolStripMenuItem_DKBQ";
            //size = new Size(0xbb, 0x16);
            this._ToolStripMenuItem_DKBQ.Size = new Size(0xbb, 0x16);
            this._ToolStripMenuItem_DKBQ.Text = "Đăng k\x00fd bản quyền";
            this._CapNhatToolStripMenuItem.Name = "CapNhatToolStripMenuItem";
            //size = new Size(0xbb, 0x16);
            this._CapNhatToolStripMenuItem.Size = new Size(0xbb, 0x16);
            this._CapNhatToolStripMenuItem.Text = "Cập nhật phần mềm";
            this._CapNhatToolStripMenuItem.Visible = false;
            this._AboutToolStripMenuItem.Name = "AboutToolStripMenuItem";
            //size = new Size(0xbb, 0x16);
            this._AboutToolStripMenuItem.Size = new Size(0xbb, 0x16);
            this._AboutToolStripMenuItem.Text = "&Th\x00f4ng tin phần mềm";
            this._StatusStrip.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this._StatusStrip.Items.AddRange(new ToolStripItem[] { this._ToolStripStatusLabel, this._ToolStripStatusLabel1, this._LblBar2, this._LblGio, this._LblBar1, this._LblDangNhap });
            //point = new Point(0, 0x2c1);
            this._StatusStrip.Location = new Point(0, 0x2c1);
            this._StatusStrip.Name = "StatusStrip";
            //size = new Size(0x452, 0x16);
            this._StatusStrip.Size = new Size(0x452, 0x16);
            this._StatusStrip.TabIndex = 7;
            this._StatusStrip.Text = "StatusStrip";
            this._ToolStripStatusLabel.Name = "ToolStripStatusLabel";
            //size = new Size(0, 0x11);
            this._ToolStripStatusLabel.Size = new Size(0, 0x11);
            this._ToolStripStatusLabel1.BackColor = Color.Transparent;
            this._ToolStripStatusLabel1.Image = (Image)manager.GetObject("ToolStripStatusLabel1.Image");
            this._ToolStripStatusLabel1.Name = "ToolStripStatusLabel1";
            //size = new Size(0x33, 0x11);
            this._ToolStripStatusLabel1.Size = new Size(0x33, 0x11);
            this._ToolStripStatusLabel1.Text = "Ng\x00e0y";
            this._LblBar2.BackColor = Color.Transparent;
            this._LblBar2.Name = "LblBar2";
            //size = new Size(0x16, 0x11);
            this._LblBar2.Size = new Size(0x16, 0x11);
            this._LblBar2.Text = "  |  ";
            this._LblGio.BackColor = Color.Transparent;
            this._LblGio.Image = (Image)manager.GetObject("LblGio.Image");
            this._LblGio.Name = "LblGio";
            //size = new Size(0x2c, 0x11);
            this._LblGio.Size = new Size(0x2c, 0x11);
            this._LblGio.Text = "Giờ:";
            this._LblBar1.BackColor = Color.Transparent;
            this._LblBar1.BorderStyle = Border3DStyle.RaisedInner;
            this._LblBar1.Name = "LblBar1";
            //size = new Size(0x16, 0x11);
            this._LblBar1.Size = new Size(0x16, 0x11);
            this._LblBar1.Text = "  |  ";
            this._LblDangNhap.BackColor = Color.Transparent;
            this._LblDangNhap.Image = (Image)manager.GetObject("LblDangNhap.Image");
            this._LblDangNhap.ImageTransparentColor = Color.White;
            this._LblDangNhap.Name = "LblDangNhap";
            //size = new Size(0x6a, 0x11);
            this._LblDangNhap.Size = new Size(0x6a, 0x11);
            this._LblDangNhap.Text = "T\x00ean đăng nhập:";
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackColor = Color.White;
            this.BackgroundImageLayout = ImageLayout.Center;
            //size = new Size(0x452, 0x2d7);
            this.ClientSize = new Size(0x452, 0x2d7);
            this.Controls.Add(this._CmdDockLeft);
            this.Controls.Add(this._ToolStrip);
            this.Controls.Add(this._MenuStrip);
            this.Controls.Add(this._StatusStrip);
            this.Icon = (Icon)manager.GetObject("_this._Icon");
            this.IsMdiContainer = true;
            this.KeyPreview = true;
            this.MainMenuStrip = this._MenuStrip;
            this.Name = "FRMMAIN";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "PHAN MEM QUAN LY KINH DOANH - [ NGUYEN THANH TOAN ]";
            this.WindowState = FormWindowState.Maximized;
            ((ISupportInitialize)this._CmdDockLeft).EndInit();
            this._CmdDockLeft.ResumeLayout(false);
            ((ISupportInitialize)this._TabLeft).EndInit();
            this._TabLeft.ResumeLayout(false);
            this._TabMenu.ResumeLayout(false);
            this._pLeftBottom.ResumeLayout(false);
            this._Panel1.ResumeLayout(false);
            this._Panel1.PerformLayout();
            this._ContextMenuStrip1.ResumeLayout(false);
            this._ToolStrip.ResumeLayout(false);
            this._ToolStrip.PerformLayout();
            this._MenuStrip.ResumeLayout(false);
            this._MenuStrip.PerformLayout();
            this._StatusStrip.ResumeLayout(false);
            this._StatusStrip.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void LoadBaoCao()
        {
            DataTable listBaoCao = new DataTable();
            TreeNode node = new TreeNode();
            this.TVMenu.Nodes.Clear();
            listBaoCao = this.objMN.GetListBaoCao("");
            if (listBaoCao != null)
            {
                TreeView tVMenu = this.TVMenu;
                int num2 = listBaoCao.Rows.Count - 1;
                for (int i = 0; i <= num2; i++)
                {
                    tVMenu.Nodes.Add("MN" + listBaoCao.Rows[i]["Khoa"].ToString().Trim(), listBaoCao.Rows[i]["TenMenu"].ToString().Trim(), 10, 11);
                }
                tVMenu = null;
            }
        }

        public void loadDanhMuc()
        {
            DataTable listMenu = new DataTable();
            TreeNode node = new TreeNode();
            string pPhanHe = "DC";
            this.TVMenu.Nodes.Clear();
            this.TVMenu.Nodes.Add(pPhanHe.Trim() + "DM", modGeneral.Tranlated("Danh mục", ""), 11, 11);
            listMenu = this.objMN.GetListMenu(pPhanHe, "");
            TreeView tVMenu = this.TVMenu;
            int num2 = listMenu.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                string pValue = pPhanHe.Trim() + listMenu.Rows[i]["Nhom"].ToString().Trim();
                this.mSearchParentNode(pValue, "MN" + listMenu.Rows[i]["Khoa"].ToString().Trim(), listMenu.Rows[i]["TenMenu"].ToString().Trim(), Conversions.ToInteger(listMenu.Rows[i]["ImageIndex"]), "MN");
            }
            tVMenu = null;
            this.CmdAllNghiepVu.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbtleftblue;
        }

        public void LoadMenu(string pMaPhanHe = "")
        {
            if (LVYModule.ReturnIfNull(modGeneral.ConnectionString, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải thiết lập kết nối đến cơ sở dữ liệu!", ""));
                MyProject.Forms.Frm_KetNoiCSDL.ShowDialog();
                if (LVYModule.ReturnIfNull(modGeneral.ConnectionString, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    return;
                }
            }
            DataTable listPhanHe = new DataTable();
            TreeNode node = new TreeNode();
            string pConditions = "";
            this.TVMenu.Nodes.Clear();
            if (pMaPhanHe.Trim() != "")
            {
                pConditions = " Ma = '" + pMaPhanHe + "'";
            }
            listPhanHe = this.objMN.GetListPhanHe(pConditions);
            if (listPhanHe != null)
            {
                int num;
                TreeView tVMenu = this.TVMenu;
                int num2 = listPhanHe.Rows.Count - 1;
                for (num = 0; num <= num2; num++)
                {
                    object[] objArray = new object[4];
                    objArray[0] = listPhanHe.Rows[num]["Ma"].ToString().Trim();
                    objArray[1] = listPhanHe.Rows[num]["TenPhanHe"].ToString().Trim();
                    DataRow row = listPhanHe.Rows[num];
                    string str3 = "ImgIndex";
                    objArray[2] = RuntimeHelpers.GetObjectValue(row[str3]);
                    DataRow row2 = listPhanHe.Rows[num];
                    string str4 = "ImgIndex";
                    objArray[3] = RuntimeHelpers.GetObjectValue(row2[str4]);
                    object[] arguments = objArray;
                    bool[] copyBack = new bool[] { false, false, true, true };
                    NewLateBinding.LateCall(tVMenu.Nodes, null, "Add", arguments, null, null, copyBack, true);
                    if (copyBack[2])
                    {
                        row[str3] = RuntimeHelpers.GetObjectValue(arguments[2]);
                    }
                    if (copyBack[3])
                    {
                        row2[str4] = RuntimeHelpers.GetObjectValue(arguments[3]);
                    }
                    tVMenu.Nodes[tVMenu.Nodes.Count - 1].Tag = "PH";
                }
                tVMenu = null;
                listPhanHe = this.objMN.GetListMenu(pMaPhanHe, " NhomMenu = 1 And HienThi = 1 ");
                if (listPhanHe != null)
                {
                    string str2;
                    TreeView view2 = this.TVMenu;
                    int num3 = listPhanHe.Rows.Count - 1;
                    for (num = 0; num <= num3; num++)
                    {
                        str2 = listPhanHe.Rows[num]["Nhom"].ToString().Trim();
                        this.mSearchParentNode(str2, listPhanHe.Rows[num]["Khoa"].ToString().Trim(), listPhanHe.Rows[num]["TenMenu"].ToString().Trim(), 11, "GR");
                    }
                    view2 = null;
                    listPhanHe = this.objMN.GetListMenuCon(pMaPhanHe, " NhomMenu = 0 And HienThi = 1 ");
                    if (listPhanHe != null)
                    {
                        TreeView view3 = this.TVMenu;
                        int num4 = listPhanHe.Rows.Count - 1;
                        for (num = 0; num <= num4; num++)
                        {
                            str2 = listPhanHe.Rows[num]["Nhom"].ToString().Trim();
                            this.mSearchParentNode(str2, "MN" + listPhanHe.Rows[num]["Khoa"].ToString().Trim(), listPhanHe.Rows[num]["TenMenu"].ToString().Trim(), Conversions.ToInteger(listPhanHe.Rows[num]["ImageIndex"]), "MN");
                        }
                        view3 = null;
                        this.TVMenu.ExpandAll();
                        int num5 = this.TVMenu.Nodes.Count - 1;
                        for (num = 0; num <= num5; num++)
                        {
                            if (num <= (this.TVMenu.Nodes.Count - 1))
                            {
                                this.HideNodeNull(this.TVMenu.Nodes[num]);
                                if (this.Flag)
                                {
                                    num--;
                                    this.Flag = false;
                                }
                            }
                        }
                    }
                }
            }
        }

        public void LoadTimKiem()
        {
            DataTable listTimKiem = new DataTable();
            TreeNode node = new TreeNode();
            this.TVMenu.Nodes.Clear();
            listTimKiem = this.objMN.GetListTimKiem("");
            if (listTimKiem != null)
            {
                TreeView tVMenu = this.TVMenu;
                int num2 = listTimKiem.Rows.Count - 1;
                for (int i = 0; i <= num2; i++)
                {
                    tVMenu.Nodes.Add("MN" + listTimKiem.Rows[i]["Khoa"].ToString().Trim(), listTimKiem.Rows[i]["TenMenu"].ToString().Trim(), 12, 13);
                }
                tVMenu = null;
            }
        }

        private void mnCapNhatTuDien_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_Dictionary.ShowDialog();
        }

        private void mnDoiMatKhau_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_DoiMatKhau.ShowDialog();
        }

        private void mnGiaTriMacDinh_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_GiaTriMacDinh.ShowDialog();
        }

        private void mnHienThiChucNang_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_Run.ShowDialog();
        }

        private void MnKhoaSo_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_KhoaSo.ShowDialog();
        }

        private void mnQuanLyNguoiDung_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_DanhSachNguoiDung.ShowDialog();
        }

        private void mnXoaTrangDuLieu_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_ClearData.ShowDialog();
        }

        public TreeNode mSearchParentNode(string pValue, string pID, string pText, int pImgIndex, string Tag)
        {
            TreeNode node2 = new TreeNode();
            try
            {
                TreeNode[] nodeArray = this.TVMenu.Nodes.Find(pValue, true);
                int num2 = nodeArray.Length - 1;
                for (int i = 0; i <= num2; i++)
                {
                    node2 = nodeArray[i].Nodes.Add(pID, pText, pImgIndex, pImgIndex);
                    nodeArray[i].Nodes[nodeArray[i].Nodes.Count - 1].Tag = Tag;
                }
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Interaction.MsgBox(exception1.ToString(), MsgBoxStyle.OkOnly, null);
                ProjectData.ClearProjectError();
            }
            return node2;
        }

        private void NotifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            this.Show();
            this.WindowState = FormWindowState.Maximized;
            this.BringToFront();
        }

        public void SetLanguage()
        {
        }

        public void SetEvents()
        {
            this.CmdAllNghiepVu.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbtleftblue;
            //NewLateBinding.LateSet(this.mButtomClick, null, "BackgroundImage", new object[] { ACCOUNTING.My.Resources.Resources.bgbtleftyellow }, null, null);
            this._CapNhatToolStripMenuItem.Click += this.CapNhatToolStripMenuItem_Click;
            this._CmdAllNghiepVu.MouseMove += this.CmdNghiepVu_MouseMove;
            this._CmdAllNghiepVu.MouseLeave += this.CmdNghiepVu_MouseLeave;
            this._CmdAllNghiepVu.Click += this.CmdAllNghiepVu_Click;
            this._CmdBanHang.Click += this.CmdBanHang_Click;
            this._CmdDangNhap.Click += this.CmdDangNhap_Click;
            this._CmdHopDong.Click += this.CmdKeToanKho_Click;
            this._CmdKeToanKho.Click += this.CmdKeToanKho_Click;
            this._CmdKTKho.Click += this.CmdKTKho_Click;
            this._CmdKTTongHop.Click += this.CmdKTTongHop_Click;
            this._CmdMuaHang.Click += this.CmdMuaHang_Click;
            this._CmdTaiSanCoDinh.Click += this.CmdTaiSanCoDinh_Click;
            this._CmdGiaThanh.Click += this.CmdGiaThanh_Click;
            this._ContentsToolStripMenuItem.Click += this.ContentsToolStripMenuItem_Click;
            this._DangKyToolStripMenuItem.Click += this.DangKyToolStripMenuItem_Click;
            this._ExitToolStripMenuItem.Click += this.ExitToolsStripMenuItem_Click;
            this._HienThiToolStripMenuItem.Click += this.HienThiToolStripMenuItem_Click;
            this._ImportExcelToolStripMenuItem.Click += this.ImportExcelToolStripMenuItem_Click;
            this._mnCapNhatTuDien.Click += this.mnCapNhatTuDien_Click;
            this._mnDoiMatKhau.Click += this.mnDoiMatKhau_Click;
            this._mnGiaTriMacDinh.Click += this.mnGiaTriMacDinh_Click;
            this._mnHienThiChucNang.Click += this.mnHienThiChucNang_Click;
            this._MnKhoaSo.Click += this.MnKhoaSo_Click;
            this._mnQuanLyNguoiDung.Click += this.mnQuanLyNguoiDung_Click;
            this._mnXoaTrangDuLieu.Click += this.mnXoaTrangDuLieu_Click;
            this._NotifyIcon1.MouseDoubleClick += this.NotifyIcon1_MouseDoubleClick;
            this._SupportToolStripMenuItem.Click += this.SupportToolStripMenuItem_Click;
            this._ThoatChươngTrìnhToolStripMenuItem.Click += this.ThoatChươngTrìnhToolStripMenuItem_Click;
            this._THONGTIN.Click += this.THONGTIN_Click;
            this._Timer1.Tick += this.Timer1_Tick;
            this._Timer2.Tick += this.Timer2_Tick;
            this._ToolStripButton1.Click += this.ToolStripButton1_Click;
            this._ToolStripMenuItem_DKBQ.Click += this.ToolStripMenuItem_DKBQ_Click;
            this._TTDangKyDuLieu.Click += this.TTDangKyDuLieu_Click;
            this._TTKetNoiCSDL.Click += this.TTKetNoiCSDL_Click;
            this._TVMenu.NodeMouseDoubleClick += this.TVMenu_NodeMouseDoubleClick;
            this._TVMenu.AfterSelect += this.TVMenu_AfterSelect;
            this._txtKiemTraHoaDon.KeyPress += this.txtKiemTraHoaDon_KeyPress;
        }

        private void SupportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!File.Exists(@"Support\LVY_QS.exe"))
            {
                LVYModule.ShowWarning("Hiện tại chương tr\x00ecnh hỗ trợ trực tuyến chưa được c\x00e0i đặt !");
            }
            else
            {
                try
                {
                    Process.Start(@"Support\LVY_QS.exe");
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    ProjectData.ClearProjectError();
                }
            }
        }

        private void ThoatChươngTrìnhToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Dispose();
            Application.Exit();
        }

        public bool ThongBaoHanSuDung(int DaysUsed, int TotalDays)
        {
            if (!this.FullVersion)
            {
                MyProject.Forms.Frm_DangKyBanQuyen.objFrmCall = this;
                if (TotalDays < 0)
                {
                    Interaction.MsgBox("Lỗi chương tr\x00ecnh xảy ra \r\rNh\x00e0 cung cấp đ\x00e3 đặt chương tr\x00ecnh bạn thời hạn sử dụng nhỏ hơn 0. Xin li\x00ean hệ với nh\x00e0 cung cấp để biết th\x00f4ng tin chi tiết.", MsgBoxStyle.OkOnly, null);
                    return false;
                }
                if (DaysUsed >= TotalDays)
                {
                    MyProject.Forms.Frm_DangKyBanQuyen.LblMessage.Text = "Chương tr\x00ecnh bạn đ\x00e3 hết hạn sử dụng";
                    return (MyProject.Forms.Frm_DangKyBanQuyen.ShowDialog() == DialogResult.OK);
                }
                MyProject.Forms.Frm_DangKyBanQuyen.LblMessage.Text = "Bạn c\x00f2n " + Conversions.ToString((int) (TotalDays - DaysUsed)) + " ng\x00e0y sử dụng trong phi\x00ean bản d\x00f9ng thử";
                MyProject.Forms.Frm_DangKyBanQuyen.CmdThoat.Text = "D\x00f9ng thử";
                MyProject.Forms.Frm_DangKyBanQuyen.CmdThoat.Image = null;
                MyProject.Forms.Frm_DangKyBanQuyen.ShowDialog();
                MyProject.Forms.Frm_DangKyBanQuyen.BringToFront();
            }
            return true;
        }

        private void THONGTIN_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_ThongTinCongTy.ShowDialog();
        }

        private void Timer1_Tick(object sender, EventArgs e)
        {
            if ((DateAndTime.Now.Minute < 10) & (DateAndTime.Now.Second < 10))
            {
                this.LblGio.Text = Conversions.ToString(DateAndTime.Now.Hour) + ":0" + Conversions.ToString(DateAndTime.Now.Minute) + ":0" + Conversions.ToString(DateAndTime.Now.Second);
            }
            else if ((DateAndTime.Now.Minute < 10) & (DateAndTime.Now.Second > 9))
            {
                this.LblGio.Text = Conversions.ToString(DateAndTime.Now.Hour) + ":0" + Conversions.ToString(DateAndTime.Now.Minute) + ":" + Conversions.ToString(DateAndTime.Now.Second);
            }
            else if ((DateAndTime.Now.Minute > 9) & (DateAndTime.Now.Second < 10))
            {
                this.LblGio.Text = Conversions.ToString(DateAndTime.Now.Hour) + ":" + Conversions.ToString(DateAndTime.Now.Minute) + ":0" + Conversions.ToString(DateAndTime.Now.Second);
            }
            else
            {
                this.LblGio.Text = Conversions.ToString(DateAndTime.Now.Hour) + ":" + Conversions.ToString(DateAndTime.Now.Minute) + ":" + Conversions.ToString(DateAndTime.Now.Second);
            }
        }

        private void Timer2_Tick(object sender, EventArgs e)
        {
        }

        private void ToolStripButton1_Click(object sender, EventArgs e)
        {
            LVYModule.ShowHelp("Gioi thieu.mht");
        }

        private void ToolStripMenuItem_DKBQ_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_DangKyBanQuyen.objFrmCall = this;
            MyProject.Forms.Frm_DangKyBanQuyen.ShowDialog();
        }

        private void TTDangKyDuLieu_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_DangKyDuLieu.ShowDialog();
        }

        private void TTKetNoiCSDL_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_KetNoiCSDL.ShowDialog();
        }

        private void TVMenu_AfterSelect(object sender, TreeViewEventArgs e)
        {
        }

        private void TVMenu_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            string name = e.Node.Name;
            if (LVYModule.sLeft(name, 2) == "MN")
            {
                ShowFormModule.ShowForm(LVYModule.sRight(name.Trim(), 7));
            }
        }

        private void txtKiemTraHoaDon_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\r')
            {
                string str = Conversions.ToString(LVYModule.ReturnIfNull(this.txtKiemTraHoaDon.Text.Trim(), "", modGeneral.TypeOfValue.Nothing));
                this.txtKiemTraHoaDon.Clear();
                if (str == "")
                {
                    e.Handled = true;
                }
                string pValue = "";
                pValue = this.objXK.GetKhoaHoaDon("Rtrim(BarCode) = '" + this.objMHD.MD5(str).Trim() + "'");
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(pValue, "", modGeneral.TypeOfValue.Nothing), "", false))
                {
                    MessageBox.Show("Bản in n\x00e0y kh\x00f4ng hợp lệ, kh\x00f4ng tồn tại h\x00f3a đơn tương ứng !", "DRAGON 2 - Thong Bao", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1);
                }
                else
                {
                    switch (pValue.Substring(2, 2))
                    {
                        case "XB":
                            MyProject.Forms.Frm_XuatBan.Dispose();
                            MyProject.Forms.Frm_XuatBan.cFrmKhoa = pValue;
                            MyProject.Forms.Frm_XuatBan.ShowDialog();
                            MyProject.Forms.Frm_XuatBan.BringToFront();
                            break;

                        case "DV":
                            MyProject.Forms.Frm_HoaDonBanDichVu.Dispose();
                            MyProject.Forms.Frm_HoaDonBanDichVu.cFrmKhoa = pValue;
                            MyProject.Forms.Frm_HoaDonBanDichVu.ShowDialog();
                            MyProject.Forms.Frm_HoaDonBanDichVu.BringToFront();
                            break;

                        case "TH":
                            MyProject.Forms.Frm_TraHangNhaCungCap.Dispose();
                            MyProject.Forms.Frm_TraHangNhaCungCap.cFrmKhoa = pValue;
                            MyProject.Forms.Frm_TraHangNhaCungCap.ShowDialog();
                            MyProject.Forms.Frm_TraHangNhaCungCap.BringToFront();
                            break;
                    }
                }
            }
        }

        internal virtual ToolStripMenuItem AboutToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AboutToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AboutToolStripMenuItem = value;
            }
        }

        public object ButtomLeftClick
        {
            get
            {
                return this.mButtomClick;
            }
            set
            {
                this.mButtomClick = RuntimeHelpers.GetObjectValue(value);
                this.CmdAllNghiepVu.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbtleftblue;
                NewLateBinding.LateSet(this.mButtomClick, null, "BackgroundImage", new object[] { ACCOUNTING.My.Resources.Resources.bgbtleftyellow }, null, null);
            }
        }        

        internal virtual ToolStripMenuItem CapNhatPMToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CapNhatPMToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CapNhatPMToolStripMenuItem = value;
            }
        }

        internal virtual ToolStripMenuItem CapNhatToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CapNhatToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CapNhatToolStripMenuItem_Click);
                if (this._CapNhatToolStripMenuItem != null)
                {
                    this._CapNhatToolStripMenuItem.Click -= handler;
                }
                this._CapNhatToolStripMenuItem = value;
                if (this._CapNhatToolStripMenuItem != null)
                {
                    this._CapNhatToolStripMenuItem.Click += handler;
                }
            }
        }

        internal virtual Button CmdAllNghiepVu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAllNghiepVu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                MouseEventHandler handler = new MouseEventHandler(this.CmdNghiepVu_MouseMove);
                EventHandler handler2 = new EventHandler(this.CmdNghiepVu_MouseLeave);
                EventHandler handler3 = new EventHandler(this.CmdAllNghiepVu_Click);
                if (this._CmdAllNghiepVu != null)
                {
                    this._CmdAllNghiepVu.MouseMove -= handler;
                    this._CmdAllNghiepVu.MouseLeave -= handler2;
                    this._CmdAllNghiepVu.Click -= handler3;
                }
                this._CmdAllNghiepVu = value;
                if (this._CmdAllNghiepVu != null)
                {
                    this._CmdAllNghiepVu.MouseMove += handler;
                    this._CmdAllNghiepVu.MouseLeave += handler2;
                    this._CmdAllNghiepVu.Click += handler3;
                }
            }
        }

        internal virtual ToolStripButton CmdBanHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdBanHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdBanHang_Click);
                if (this._CmdBanHang != null)
                {
                    this._CmdBanHang.Click -= handler;
                }
                this._CmdBanHang = value;
                if (this._CmdBanHang != null)
                {
                    this._CmdBanHang.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem CmdDangNhap
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDangNhap;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDangNhap_Click);
                if (this._CmdDangNhap != null)
                {
                    this._CmdDangNhap.Click -= handler;
                }
                this._CmdDangNhap = value;
                if (this._CmdDangNhap != null)
                {
                    this._CmdDangNhap.Click += handler;
                }
            }
        }

        internal virtual C1CommandDock CmdDockLeft
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDockLeft;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdDockLeft = value;
            }
        }

        internal virtual ToolStripButton CmdHopDong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdHopDong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdHopDong_Click);
                if (this._CmdHopDong != null)
                {
                    this._CmdHopDong.Click -= handler;
                }
                this._CmdHopDong = value;
                if (this._CmdHopDong != null)
                {
                    this._CmdHopDong.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdKeToanKho
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdKeToanKho;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdKeToanKho_Click);
                if (this._CmdKeToanKho != null)
                {
                    this._CmdKeToanKho.Click -= handler;
                }
                this._CmdKeToanKho = value;
                if (this._CmdKeToanKho != null)
                {
                    this._CmdKeToanKho.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdKTKho
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdKTKho;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdKTKho_Click);
                if (this._CmdKTKho != null)
                {
                    this._CmdKTKho.Click -= handler;
                }
                this._CmdKTKho = value;
                if (this._CmdKTKho != null)
                {
                    this._CmdKTKho.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdKTTongHop
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdKTTongHop;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdKTTongHop_Click);
                if (this._CmdKTTongHop != null)
                {
                    this._CmdKTTongHop.Click -= handler;
                }
                this._CmdKTTongHop = value;
                if (this._CmdKTTongHop != null)
                {
                    this._CmdKTTongHop.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdMuaHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdMuaHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdMuaHang_Click);
                if (this._CmdMuaHang != null)
                {
                    this._CmdMuaHang.Click -= handler;
                }
                this._CmdMuaHang = value;
                if (this._CmdMuaHang != null)
                {
                    this._CmdMuaHang.Click += handler;
                }
            }
        }        

        internal virtual ToolStripButton CmdTaiSanCoDinh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdTaiSanCoDinh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdTaiSanCoDinh_Click);
                if (this._CmdTaiSanCoDinh != null)
                {
                    this._CmdTaiSanCoDinh.Click -= handler;
                }
                this._CmdTaiSanCoDinh = value;
                if (this._CmdTaiSanCoDinh != null)
                {
                    this._CmdTaiSanCoDinh.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdGiaThanh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdGiaThanh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdGiaThanh_Click);
                if (this._CmdGiaThanh != null)
                {
                    this._CmdGiaThanh.Click -= handler;
                }
                this._CmdGiaThanh = value;
                if (this._CmdGiaThanh != null)
                {
                    this._CmdGiaThanh.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem ContentsToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ContentsToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.ContentsToolStripMenuItem_Click);
                if (this._ContentsToolStripMenuItem != null)
                {
                    this._ContentsToolStripMenuItem.Click -= handler;
                }
                this._ContentsToolStripMenuItem = value;
                if (this._ContentsToolStripMenuItem != null)
                {
                    this._ContentsToolStripMenuItem.Click += handler;
                }
            }
        }

        internal virtual ContextMenuStrip ContextMenuStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ContextMenuStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ContextMenuStrip1 = value;
            }
        }

        internal virtual ToolStripMenuItem DangKyToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._DangKyToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.DangKyToolStripMenuItem_Click);
                if (this._DangKyToolStripMenuItem != null)
                {
                    this._DangKyToolStripMenuItem.Click -= handler;
                }
                this._DangKyToolStripMenuItem = value;
                if (this._DangKyToolStripMenuItem != null)
                {
                    this._DangKyToolStripMenuItem.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem ExitToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ExitToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.ExitToolsStripMenuItem_Click);
                if (this._ExitToolStripMenuItem != null)
                {
                    this._ExitToolStripMenuItem.Click -= handler;
                }
                this._ExitToolStripMenuItem = value;
                if (this._ExitToolStripMenuItem != null)
                {
                    this._ExitToolStripMenuItem.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem HelpMenu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._HelpMenu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._HelpMenu = value;
            }
        }

        internal virtual ToolStripMenuItem HETHONGMENU
        {
            [DebuggerNonUserCode]
            get
            {
                return this._HETHONGMENU;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._HETHONGMENU = value;
            }
        }

        internal virtual ToolStripMenuItem HienThiToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._HienThiToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.HienThiToolStripMenuItem_Click);
                if (this._HienThiToolStripMenuItem != null)
                {
                    this._HienThiToolStripMenuItem.Click -= handler;
                }
                this._HienThiToolStripMenuItem = value;
                if (this._HienThiToolStripMenuItem != null)
                {
                    this._HienThiToolStripMenuItem.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem HoTroToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._HoTroToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._HoTroToolStripMenuItem = value;
            }
        }

        internal virtual ImageList ImageList1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ImageList1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ImageList1 = value;
            }
        }

        internal virtual ImageList ImageListMenu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ImageListMenu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ImageListMenu = value;
            }
        }

        internal virtual ToolStripMenuItem ImportExcelToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ImportExcelToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.ImportExcelToolStripMenuItem_Click);
                if (this._ImportExcelToolStripMenuItem != null)
                {
                    this._ImportExcelToolStripMenuItem.Click -= handler;
                }
                this._ImportExcelToolStripMenuItem = value;
                if (this._ImportExcelToolStripMenuItem != null)
                {
                    this._ImportExcelToolStripMenuItem.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem IndexToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._IndexToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._IndexToolStripMenuItem = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual System.Windows.Forms.ToolStripStatusLabel LblBar1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._LblBar1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._LblBar1 = value;
            }
        }

        internal virtual System.Windows.Forms.ToolStripStatusLabel LblBar2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._LblBar2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._LblBar2 = value;
            }
        }

        internal virtual System.Windows.Forms.ToolStripStatusLabel LblDangNhap
        {
            [DebuggerNonUserCode]
            get
            {
                return this._LblDangNhap;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._LblDangNhap = value;
            }
        }

        internal virtual System.Windows.Forms.ToolStripStatusLabel LblGio
        {
            [DebuggerNonUserCode]
            get
            {
                return this._LblGio;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._LblGio = value;
            }
        }

        internal virtual System.Windows.Forms.MenuStrip MenuStrip
        {
            [DebuggerNonUserCode]
            get
            {
                return this._MenuStrip;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._MenuStrip = value;
            }
        }

        internal virtual ToolStripMenuItem mnCapNhatTuDien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._mnCapNhatTuDien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.mnCapNhatTuDien_Click);
                if (this._mnCapNhatTuDien != null)
                {
                    this._mnCapNhatTuDien.Click -= handler;
                }
                this._mnCapNhatTuDien = value;
                if (this._mnCapNhatTuDien != null)
                {
                    this._mnCapNhatTuDien.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem mnDoiMatKhau
        {
            [DebuggerNonUserCode]
            get
            {
                return this._mnDoiMatKhau;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.mnDoiMatKhau_Click);
                if (this._mnDoiMatKhau != null)
                {
                    this._mnDoiMatKhau.Click -= handler;
                }
                this._mnDoiMatKhau = value;
                if (this._mnDoiMatKhau != null)
                {
                    this._mnDoiMatKhau.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem mnGiaTriMacDinh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._mnGiaTriMacDinh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.mnGiaTriMacDinh_Click);
                if (this._mnGiaTriMacDinh != null)
                {
                    this._mnGiaTriMacDinh.Click -= handler;
                }
                this._mnGiaTriMacDinh = value;
                if (this._mnGiaTriMacDinh != null)
                {
                    this._mnGiaTriMacDinh.Click += handler;
                }
            }
        }

       internal virtual ToolStripMenuItem mnHienThiChucNang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._mnHienThiChucNang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.mnHienThiChucNang_Click);
                if (this._mnHienThiChucNang != null)
                {
                    this._mnHienThiChucNang.Click -= handler;
                }
                this._mnHienThiChucNang = value;
                if (this._mnHienThiChucNang != null)
                {
                    this._mnHienThiChucNang.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem MnKhoaSo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._MnKhoaSo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.MnKhoaSo_Click);
                if (this._MnKhoaSo != null)
                {
                    this._MnKhoaSo.Click -= handler;
                }
                this._MnKhoaSo = value;
                if (this._MnKhoaSo != null)
                {
                    this._MnKhoaSo.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem mnQuanLyNguoiDung
        {
            [DebuggerNonUserCode]
            get
            {
                return this._mnQuanLyNguoiDung;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.mnQuanLyNguoiDung_Click);
                if (this._mnQuanLyNguoiDung != null)
                {
                    this._mnQuanLyNguoiDung.Click -= handler;
                }
                this._mnQuanLyNguoiDung = value;
                if (this._mnQuanLyNguoiDung != null)
                {
                    this._mnQuanLyNguoiDung.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem mnXoaTrangDuLieu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._mnXoaTrangDuLieu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.mnXoaTrangDuLieu_Click);
                if (this._mnXoaTrangDuLieu != null)
                {
                    this._mnXoaTrangDuLieu.Click -= handler;
                }
                this._mnXoaTrangDuLieu = value;
                if (this._mnXoaTrangDuLieu != null)
                {
                    this._mnXoaTrangDuLieu.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem NGONNGU
        {
            [DebuggerNonUserCode]
            get
            {
                return this._NGONNGU;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._NGONNGU = value;
            }
        }

        internal virtual NotifyIcon NotifyIcon1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._NotifyIcon1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                MouseEventHandler handler = new MouseEventHandler(this.NotifyIcon1_MouseDoubleClick);
                if (this._NotifyIcon1 != null)
                {
                    this._NotifyIcon1.MouseDoubleClick -= handler;
                }
                this._NotifyIcon1 = value;
                if (this._NotifyIcon1 != null)
                {
                    this._NotifyIcon1.MouseDoubleClick += handler;
                }
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel pLeftBottom
        {
            [DebuggerNonUserCode]
            get
            {
                return this._pLeftBottom;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._pLeftBottom = value;
            }
        }

        internal virtual ToolStripMenuItem SearchToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._SearchToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._SearchToolStripMenuItem = value;
            }
        }

        internal virtual System.Windows.Forms.StatusStrip StatusStrip
        {
            [DebuggerNonUserCode]
            get
            {
                return this._StatusStrip;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._StatusStrip = value;
            }
        }

        internal virtual ToolStripMenuItem SupportToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._SupportToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.SupportToolStripMenuItem_Click);
                if (this._SupportToolStripMenuItem != null)
                {
                    this._SupportToolStripMenuItem.Click -= handler;
                }
                this._SupportToolStripMenuItem = value;
                if (this._SupportToolStripMenuItem != null)
                {
                    this._SupportToolStripMenuItem.Click += handler;
                }
            }
        }

        internal virtual C1DockingTab TabLeft
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TabLeft;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TabLeft = value;
            }
        }

        internal virtual C1DockingTabPage TabMenu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TabMenu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TabMenu = value;
            }
        }

        internal virtual ToolStripMenuItem ThoatChươngTrìnhToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ThoatChươngTrìnhToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.ThoatChươngTrìnhToolStripMenuItem_Click);
                if (this._ThoatChươngTrìnhToolStripMenuItem != null)
                {
                    this._ThoatChươngTrìnhToolStripMenuItem.Click -= handler;
                }
                this._ThoatChươngTrìnhToolStripMenuItem = value;
                if (this._ThoatChươngTrìnhToolStripMenuItem != null)
                {
                    this._ThoatChươngTrìnhToolStripMenuItem.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem THONGTIN
        {
            [DebuggerNonUserCode]
            get
            {
                return this._THONGTIN;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.THONGTIN_Click);
                if (this._THONGTIN != null)
                {
                    this._THONGTIN.Click -= handler;
                }
                this._THONGTIN = value;
                if (this._THONGTIN != null)
                {
                    this._THONGTIN.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem ThongTinToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ThongTinToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ThongTinToolStripMenuItem = value;
            }
        }

        internal virtual ToolStripMenuItem TIENGANH
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TIENGANH;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TIENGANH = value;
            }
        }

        internal virtual ToolStripMenuItem TIENGVIET
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TIENGVIET;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TIENGVIET = value;
            }
        }

        internal virtual Timer Timer1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Timer1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.Timer1_Tick);
                if (this._Timer1 != null)
                {
                    this._Timer1.Tick -= handler;
                }
                this._Timer1 = value;
                if (this._Timer1 != null)
                {
                    this._Timer1.Tick += handler;
                }
            }
        }

        internal virtual Timer Timer2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Timer2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.Timer2_Tick);
                if (this._Timer2 != null)
                {
                    this._Timer2.Tick -= handler;
                }
                this._Timer2 = value;
                if (this._Timer2 != null)
                {
                    this._Timer2.Tick += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.ToolStrip ToolStrip
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip = value;
            }
        }

        internal virtual ToolStripButton ToolStripButton1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripButton1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.ToolStripButton1_Click);
                if (this._ToolStripButton1 != null)
                {
                    this._ToolStripButton1.Click -= handler;
                }
                this._ToolStripButton1 = value;
                if (this._ToolStripButton1 != null)
                {
                    this._ToolStripButton1.Click += handler;
                }
            }
        }        

        public virtual ToolStripMenuItem ToolStripMenuItem_DKBQ
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripMenuItem_DKBQ;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.ToolStripMenuItem_DKBQ_Click);
                if (this._ToolStripMenuItem_DKBQ != null)
                {
                    this._ToolStripMenuItem_DKBQ.Click -= handler;
                }
                this._ToolStripMenuItem_DKBQ = value;
                if (this._ToolStripMenuItem_DKBQ != null)
                {
                    this._ToolStripMenuItem_DKBQ.Click += handler;
                }
            }
        }

        internal virtual ToolStripSeparator ToolStripMenuItem2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripMenuItem2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripMenuItem2 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator12
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator12;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator12 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator3 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator5 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator8 = value;
            }
        }

        internal virtual System.Windows.Forms.ToolStripStatusLabel ToolStripStatusLabel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripStatusLabel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripStatusLabel = value;
            }
        }

        internal virtual System.Windows.Forms.ToolStripStatusLabel ToolStripStatusLabel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripStatusLabel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripStatusLabel1 = value;
            }
        }

        internal virtual System.Windows.Forms.ToolTip ToolTip
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolTip;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolTip = value;
            }
        }

        internal virtual ToolStripMenuItem TroGiupToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TroGiupToolStripMenuItem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TroGiupToolStripMenuItem = value;
            }
        }

        internal virtual ToolStripMenuItem TTDangKyDuLieu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TTDangKyDuLieu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TTDangKyDuLieu_Click);
                if (this._TTDangKyDuLieu != null)
                {
                    this._TTDangKyDuLieu.Click -= handler;
                }
                this._TTDangKyDuLieu = value;
                if (this._TTDangKyDuLieu != null)
                {
                    this._TTDangKyDuLieu.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem TTKetNoiCSDL
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TTKetNoiCSDL;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TTKetNoiCSDL_Click);
                if (this._TTKetNoiCSDL != null)
                {
                    this._TTKetNoiCSDL.Click -= handler;
                }
                this._TTKetNoiCSDL = value;
                if (this._TTKetNoiCSDL != null)
                {
                    this._TTKetNoiCSDL.Click += handler;
                }
            }
        }

        internal virtual TreeView TVMenu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TVMenu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                TreeNodeMouseClickEventHandler handler = new TreeNodeMouseClickEventHandler(this.TVMenu_NodeMouseDoubleClick);
                TreeViewEventHandler handler2 = new TreeViewEventHandler(this.TVMenu_AfterSelect);
                if (this._TVMenu != null)
                {
                    this._TVMenu.NodeMouseDoubleClick -= handler;
                    this._TVMenu.AfterSelect -= handler2;
                }
                this._TVMenu = value;
                if (this._TVMenu != null)
                {
                    this._TVMenu.NodeMouseDoubleClick += handler;
                    this._TVMenu.AfterSelect += handler2;
                }
            }
        }

        internal virtual TextBox txtKiemTraHoaDon
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtKiemTraHoaDon;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                System.Windows.Forms.KeyPressEventHandler handler = new System.Windows.Forms.KeyPressEventHandler(this.txtKiemTraHoaDon_KeyPress);
                if (this._txtKiemTraHoaDon != null)
                {
                    this._txtKiemTraHoaDon.KeyPress -= handler;
                }
                this._txtKiemTraHoaDon = value;
                if (this._txtKiemTraHoaDon != null)
                {
                    this._txtKiemTraHoaDon.KeyPress += handler;
                }
            }
        }

        [StructLayout(LayoutKind.Sequential)]
        public struct CurrentDate
        {
            public string Day;
            public string Month;
            public string Year;
        }
    }
}

